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

This commit is contained in:
phk 1995-02-05 18:03:37 +00:00
parent c434c83620
commit b173ece05e

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