summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorkaiw <kaiw@FreeBSD.org>2008-02-24 18:07:46 +0000
committerkaiw <kaiw@FreeBSD.org>2008-02-24 18:07:46 +0000
commitf2c503f78701634bd900a7ee47a192e2e945b84f (patch)
treefc15727b7abbdcc08923cbea94c32b7b090b1708 /usr.bin
parentc69581f28f1b37e64e8db470518170a857d59199 (diff)
downloadFreeBSD-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)
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ar/ar.c3
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) {
OpenPOWER on IntegriCloud