Allow zero as value for certain arguments to indicate "take from disklabel".

This commit is contained in:
Poul-Henning Kamp 1995-02-05 18:03:37 +00:00
parent 88644a577e
commit 4e93a5203c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6202

View File

@ -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':