diff options
| author | Peter Wemm <peter@FreeBSD.org> | 2002-10-04 00:29:26 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 2002-10-04 00:29:26 +0000 |
| commit | a1c254d8c62cea8a3c9deaeb7543b341ea27b0c7 (patch) | |
| tree | 39a38f42db982aa95f857dc15fdcd303d1203e3d | |
| parent | 4ae86c723c1fed12c12dcf74c0fcd30f70c094a1 (diff) | |
Notes
| -rw-r--r-- | sbin/newfs_msdos/newfs_msdos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/newfs_msdos/newfs_msdos.c b/sbin/newfs_msdos/newfs_msdos.c index d0085f72323d..754c8f5bd1bc 100644 --- a/sbin/newfs_msdos/newfs_msdos.c +++ b/sbin/newfs_msdos/newfs_msdos.c @@ -725,7 +725,7 @@ getdiskinfo(int fd, const char *fname, const char *dtype, int oflag, else while (isdigit(*++s2)); s1 = s2; - if (s2 && *s2 == 's') { + if (s2 && (*s2 == 's' || *s2 == 'p')) { slice = strtol(s2 + 1, &s, 10); if (slice < 1 || slice > MAX_SLICES - BASE_SLICE) s2 = NULL; |
