Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/gnu/dist/grep/src Pullup rev 1.4 from trunk.



details:   https://anonhg.NetBSD.org/src/rev/2cf209de6ca8
branches:  netbsd-1-4
changeset: 468205:2cf209de6ca8
user:      pk <pk%NetBSD.org@localhost>
date:      Tue Apr 13 19:40:15 1999 +0000

description:
Pullup rev 1.4 from trunk.

diffstat:

 gnu/dist/grep/src/grep.c |  7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diffs (25 lines):

diff -r bd6913e1b86e -r 2cf209de6ca8 gnu/dist/grep/src/grep.c
--- a/gnu/dist/grep/src/grep.c  Tue Apr 13 19:38:18 1999 +0000
+++ b/gnu/dist/grep/src/grep.c  Tue Apr 13 19:40:15 1999 +0000
@@ -1015,6 +1015,9 @@
   FILE *fp;
   extern char *optarg;
   extern int optind;
+#ifdef __NetBSD__
+  extern char *__progname;
+#endif
 
   initialize_main (&argc, &argv);
   prog = argv[0];
@@ -1287,7 +1290,11 @@
       usage (2);
 
   if (! matcher)
+#ifdef __NetBSD__
+    matcher = __progname;
+#else
     matcher = default_matcher;
+#endif
 
   if (!setmatcher (matcher) && !setmatcher ("default"))
     abort ();



Home | Main Index | Thread Index | Old Index