aboutsummaryrefslogtreecommitdiff
path: root/findutils/grep.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-11-20 00:23:48 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-11-20 00:23:48 +0000
commit5695914e97ef8a4843a284b3913ba2488fb57ebe (patch)
tree425b6c0cb5efe78505d2f3948c5a96e598508284 /findutils/grep.c
parentf6a230f71d46fa8f0a4576c757905e8c42edcf16 (diff)
downloadbusybox-w32-5695914e97ef8a4843a284b3913ba2488fb57ebe.tar.gz
busybox-w32-5695914e97ef8a4843a284b3913ba2488fb57ebe.tar.bz2
busybox-w32-5695914e97ef8a4843a284b3913ba2488fb57ebe.zip
Usr get_last_path_component() name basename()
git-svn-id: svn://busybox.net/trunk/busybox@3737 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'findutils/grep.c')
-rw-r--r--findutils/grep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/findutils/grep.c b/findutils/grep.c
index d39dac140..0fe898c77 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -244,7 +244,8 @@ extern int grep_main(int argc, char **argv)
244#endif 244#endif
245 245
246#ifdef CONFIG_FEATURE_GREP_EGREP_ALIAS 246#ifdef CONFIG_FEATURE_GREP_EGREP_ALIAS
247 if (strcmp (basename (argv[0]), "egrep") == 0) 247 junk = get_last_path_component(argv[0]);
248 if (junk && strcmp(junk, "egrep") == 0)
248 reflags |= REG_EXTENDED; 249 reflags |= REG_EXTENDED;
249#endif 250#endif
250 251