diff options
author | kaiw <kaiw@FreeBSD.org> | 2008-02-24 18:07:46 +0000 |
---|---|---|
committer | kaiw <kaiw@FreeBSD.org> | 2008-02-24 18:07:46 +0000 |
commit | f2c503f78701634bd900a7ee47a192e2e945b84f (patch) | |
tree | fc15727b7abbdcc08923cbea94c32b7b090b1708 | |
parent | c69581f28f1b37e64e8db470518170a857d59199 (diff) | |
download | FreeBSD-src-f2c503f78701634bd900a7ee47a192e2e945b84f.zip FreeBSD-src-f2c503f78701634bd900a7ee47a192e2e945b84f.tar.gz |
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)
-rw-r--r-- | usr.bin/ar/ar.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ar/ar.c b/usr.bin/ar/ar.c index 2399f9f..2eed151 100644 --- a/usr.bin/ar/ar.c +++ b/usr.bin/ar/ar.c @@ -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) { |