Author: dim
Date: Thu Mar  7 21:37:23 2013
New Revision: 247953
URL: http://svnweb.freebsd.org/changeset/base/247953

Log:
  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

Modified:
  head/usr.bin/c99/c99.c

Modified: head/usr.bin/c99/c99.c
==============================================================================
--- head/usr.bin/c99/c99.c      Thu Mar  7 21:36:04 2013        (r247952)
+++ head/usr.bin/c99/c99.c      Thu Mar  7 21:37:23 2013        (r247953)
@@ -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++)
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to