From: Bruno Haible Date: Thu, 13 Mar 2003 13:26:58 +0000 (+0000) Subject: Tweak last patch to make it really work. X-Git-Tag: v0.12~161 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae8d9e5dda1871c05038d80890eda03cc2ad904e;p=thirdparty%2Fgettext.git Tweak last patch to make it really work. --- diff --git a/gettext-tools/src/msggrep.c b/gettext-tools/src/msggrep.c index 81e146577..8e5649583 100644 --- a/gettext-tools/src/msggrep.c +++ b/gettext-tools/src/msggrep.c @@ -334,7 +334,8 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\ /usr/bin/grep, because /usr/bin/grep doesn't understand the options -q and -e. */ #if (defined (sun) || defined (__sun)) && defined (__SVR4) - if (strcmp (grep_path, "/usr/bin/grep") == 0 + if ((strcmp (grep_path, "/usr/bin/grep") == 0 + || strcmp (grep_path, "/bin/grep") == 0)) && access ("/usr/xpg4/bin/grep", X_OK) == 0) grep_path = "/usr/xpg4/bin/grep"; #endif