From: Denys Vlasenko Date: Tue, 10 Jan 2017 14:18:38 +0000 (+0100) Subject: ash: revert "make dot command search current directory first" X-Git-Tag: 1_27_0~244 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2b4c258e74d033b75b7f34bb384290eceb5da8a6;p=oweals%2Fbusybox.git ash: revert "make dot command search current directory first" Reverts this: commit 8ad78e1ec7b2e873953f9f476fb63b5893526c39 Author: Denis Vlasenko Date: Sun Feb 15 12:40:30 2009 +0000 ash: make dot command search current directory first, as bash does. Signed-off-by: Denys Vlasenko --- diff --git a/shell/ash.c b/shell/ash.c index 7c1204a47..866c7de05 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -12502,16 +12502,7 @@ find_dot_file(char *name) if (strchr(name, '/')) return name; - /* IIRC standards do not say whether . is to be searched. - * And it is even smaller this way, making it unconditional for now: - */ - if (1) { /* ENABLE_ASH_BASH_COMPAT */ - fullname = name; - goto try_cur_dir; - } - while ((fullname = path_advance(&path, name)) != NULL) { - try_cur_dir: if ((stat(fullname, &statb) == 0) && S_ISREG(statb.st_mode)) { /* * Don't bother freeing here, since it will