diff options
-rw-r--r-- | shell/ash.c | 9 |
1 files changed, 0 insertions, 9 deletions
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) | |||
12502 | if (strchr(name, '/')) | 12502 | if (strchr(name, '/')) |
12503 | return name; | 12503 | return name; |
12504 | 12504 | ||
12505 | /* IIRC standards do not say whether . is to be searched. | ||
12506 | * And it is even smaller this way, making it unconditional for now: | ||
12507 | */ | ||
12508 | if (1) { /* ENABLE_ASH_BASH_COMPAT */ | ||
12509 | fullname = name; | ||
12510 | goto try_cur_dir; | ||
12511 | } | ||
12512 | |||
12513 | while ((fullname = path_advance(&path, name)) != NULL) { | 12505 | while ((fullname = path_advance(&path, name)) != NULL) { |
12514 | try_cur_dir: | ||
12515 | if ((stat(fullname, &statb) == 0) && S_ISREG(statb.st_mode)) { | 12506 | if ((stat(fullname, &statb) == 0) && S_ISREG(statb.st_mode)) { |
12516 | /* | 12507 | /* |
12517 | * Don't bother freeing here, since it will | 12508 | * Don't bother freeing here, since it will |