mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-20 00:33:57 +00:00
Allow zero as value for certain arguments to indicate "take from disklabel".
This commit is contained in:
parent
88644a577e
commit
4e93a5203c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6202
|
@ -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':
|
||||
|
|
Loading…
Reference in a new issue