diff options
author | phk <phk@FreeBSD.org> | 1995-02-05 18:03:37 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1995-02-05 18:03:37 +0000 |
commit | 88fa097b585ec0f68865d5f9d93a9c7dd89d795b (patch) | |
tree | 30a1b31dae4248f023fac3dc2e8cbf812c8a7e8f /sbin | |
parent | 8a338bacd94c2d248023d74cf5cee3fe67c5e54c (diff) | |
download | FreeBSD-src-88fa097b585ec0f68865d5f9d93a9c7dd89d795b.zip FreeBSD-src-88fa097b585ec0f68865d5f9d93a9c7dd89d795b.tar.gz |
Allow zero as value for certain arguments to indicate "take from disklabel".
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/newfs/newfs.c | 4 |
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': |