wok-6.x annotate busybox/stuff/busybox-1.27-ash.u @ rev 23237
updated nginx and nginx-extras (1.9.4 -> 1.16.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 25 08:10:44 2020 +0100 (2020-03-25) |
parents | |
children |
rev | line source |
---|---|
pascal@20208 | 1 Some SliTaz scripts (cook) need that... |
pascal@20208 | 2 --- busybox-1.27/shell/ash.c |
pascal@20208 | 3 +++ busybox-1.27/shell/ash.c |
pascal@20208 | 4 @@ -12632,7 +12632,13 @@ |
pascal@20208 | 5 if (strchr(name, '/')) |
pascal@20208 | 6 return name; |
pascal@20208 | 7 |
pascal@20208 | 8 + /* IIRC standards do not say whether . is to be searched. Bash do it. */ |
pascal@20208 | 9 + if (ENABLE_ASH_BASH_COMPAT) { |
pascal@20208 | 10 + fullname = name; |
pascal@20208 | 11 + goto try_cur_dir; |
pascal@20208 | 12 + } |
pascal@20208 | 13 while ((fullname = path_advance(&path, name)) != NULL) { |
pascal@20208 | 14 + try_cur_dir: |
pascal@20208 | 15 if ((stat(fullname, &statb) == 0) && S_ISREG(statb.st_mode)) { |
pascal@20208 | 16 /* |
pascal@20208 | 17 * Don't bother freeing here, since it will |