mirror of
https://github.com/opnsense/src.git
synced 2026-04-24 23:57:30 -04:00
The -q option does not require a list of elements: the command 'ar q foo.a'
is perfectly valid and eventually creates an empty archive. This is consistent with OSF1 V3.x, SunOS 4.x, ULTRIX 4.x and probably others.
This commit is contained in:
parent
4737abd588
commit
d508ff27b1
1 changed files with 2 additions and 2 deletions
|
|
@ -205,8 +205,8 @@ main(argc, argv)
|
|||
usage();
|
||||
}
|
||||
|
||||
/* -dmqr require a list of archive elements. */
|
||||
if (options & (AR_D|AR_M|AR_Q|AR_R) && !*argv) {
|
||||
/* -dmr require a list of archive elements. */
|
||||
if (options & (AR_D|AR_M|AR_R) && !*argv) {
|
||||
warnx("no archive members specified");
|
||||
usage();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue