summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sbin/newfs/newfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c
index cb6bf35..72b75e6 100644
--- a/sbin/newfs/newfs.c
+++ b/sbin/newfs/newfs.c
@@ -326,11 +326,11 @@ main(argc, argv)
fatal("%s: bad file system size", optarg);
break;
case 't':
- if ((ntracks = atoi(optarg)) <= 0)
+ if ((ntracks = atoi(optarg)) < 0)
fatal("%s: bad total tracks", optarg);
break;
case 'u':
- if ((nsectors = atoi(optarg)) <= 0)
+ if ((nsectors = atoi(optarg)) < 0)
fatal("%s: bad sectors/track", optarg);
break;
case 'x':
OpenPOWER on IntegriCloud