diff options
Diffstat (limited to 'sbin/i386/fdisk/fdisk.c')
-rw-r--r-- | sbin/i386/fdisk/fdisk.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/i386/fdisk/fdisk.c b/sbin/i386/fdisk/fdisk.c index 1bf925f..1cb2ec3 100644 --- a/sbin/i386/fdisk/fdisk.c +++ b/sbin/i386/fdisk/fdisk.c @@ -69,7 +69,7 @@ int secsize = 0; /* the sensed sector size */ const char *disk; const char *disks[] = { - "/dev/ad0", "/dev/wd0", "/dev/da0", "/dev/od0", 0 + "/dev/ad0", "/dev/da0", 0 }; struct disklabel disklabel; /* disk parameters */ @@ -692,9 +692,11 @@ int fd; static int open_disk(int u_flag) { -struct stat st; + struct stat st; if (stat(disk, &st) == -1) { + if (errno == ENOENT) + return -2; warnx("can't get file status of %s", disk); return -1; } |