Since the program is installed as 'bsdranlib', we need to

check if it is invoked as 'bsdranlib'.

Reported by:	Michael Plass <mfp49_freebsd [AT] plass-family [DOT] net>
Reviewed by:	Michael Plass <mfp49_freebsd [AT] plass-family [DOT] net>
Reviewed by:	jkoshy
Approved by:	jkoshy (mentor)
This commit is contained in:
Kai Wang 2008-02-24 18:07:46 +00:00
parent 4c8e0452e0
commit a711c209bc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=176527

View File

@ -108,7 +108,8 @@ main(int argc, char **argv)
if ((bsdar->progname = getprogname()) == NULL)
bsdar->progname = "ar";
if (strcmp(bsdar->progname, "ranlib") == 0) {
if (strcmp(bsdar->progname, "ranlib") == 0 ||
strcmp(bsdar->progname, "bsdranlib") == 0) {
while ((opt = getopt_long(argc, argv, "tV", longopts,
NULL)) != -1) {
switch(opt) {