From: Eric Andersen Date: Tue, 20 Nov 2001 00:23:48 +0000 (-0000) Subject: Usr get_last_path_component() name basename() X-Git-Tag: 0_60_2~2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=81ee96fe62916e9bd571cf3456d87cb1bba4c210;p=oweals%2Fbusybox.git Usr get_last_path_component() name basename() --- 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) #endif #ifdef CONFIG_FEATURE_GREP_EGREP_ALIAS - if (strcmp (basename (argv[0]), "egrep") == 0) + junk = get_last_path_component(argv[0]); + if (junk && strcmp(junk, "egrep") == 0) reflags |= REG_EXTENDED; #endif