wok annotate busybox/stuff/busybox-1.27-ash.u @ rev 20308
Up slitaz-tools (1028)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 09 12:44:14 2018 +0200 (2018-05-09) |
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 |