aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2002-10-04 00:29:26 +0000
committerPeter Wemm <peter@FreeBSD.org>2002-10-04 00:29:26 +0000
commita1c254d8c62cea8a3c9deaeb7543b341ea27b0c7 (patch)
tree39a38f42db982aa95f857dc15fdcd303d1203e3d /sbin
parent4ae86c723c1fed12c12dcf74c0fcd30f70c094a1 (diff)
downloadsrc-a1c254d8c62cea8a3c9deaeb7543b341ea27b0c7.tar.gz
src-a1c254d8c62cea8a3c9deaeb7543b341ea27b0c7.zip
EFI GPT partitions use 'p' as a slice seperator. eg: da0p1 or da0p217.
(There is a theoretical limit of 16384 partitions)
Notes
Notes: svn path=/head/; revision=104429
Diffstat (limited to 'sbin')
-rw-r--r--sbin/newfs_msdos/newfs_msdos.c2
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;