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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=19004
@ -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 New Issue
Block a user