From d023c5ae25df1b5d0ec59186c2de5c3e5fb69e58 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Thu, 7 Mar 2013 21:37:23 +0000 Subject: [PATCH] Make c99(1) invoke /usr/bin/cc with argv[0] set to "/usr/bin/cc" instead of just "cc", since there is no reason to cause additional path searches in this case. MFC after: 3 days --- usr.bin/c99/c99.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/c99/c99.c b/usr.bin/c99/c99.c index f5f273f565f..79cca8957db 100644 --- a/usr.bin/c99/c99.c +++ b/usr.bin/c99/c99.c @@ -70,7 +70,7 @@ main(int argc, char *argv[]) usage(); } - addarg("cc"); + addarg("/usr/bin/cc"); addarg("-std=iso9899:1999"); addarg("-pedantic"); for (i = 1; i < optind; i++)