wok annotate busybox/stuff/busybox-1.28-ash.u @ rev 20249
ardour: force 32 bits arch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 12 15:48:01 2018 +0100 (2018-03-12) |
parents | |
children |
rev | line source |
---|---|
pascal@20205 | 1 Some SliTaz scripts (cook) need that... |
pascal@20205 | 2 --- busybox-1.28/shell/ash.c |
pascal@20205 | 3 +++ busybox-1.28/shell/ash.c |
pascal@20205 | 4 @@ -12897,7 +12897,13 @@ |
pascal@20205 | 5 if (strchr(name, '/')) |
pascal@20205 | 6 return name; |
pascal@20205 | 7 |
pascal@20205 | 8 + /* IIRC standards do not say whether . is to be searched. */ |
pascal@20205 | 9 + if (ENABLE_ASH_BASH_COMPAT) { |
pascal@20205 | 10 + fullname = name; |
pascal@20205 | 11 + goto try_cur_dir; |
pascal@20205 | 12 + } |
pascal@20205 | 13 while ((fullname = path_advance(&path, name)) != NULL) { |
pascal@20205 | 14 + try_cur_dir: |
pascal@20205 | 15 if ((stat(fullname, &statb) == 0) && S_ISREG(statb.st_mode)) { |
pascal@20205 | 16 /* |
pascal@20205 | 17 * Don't bother freeing here, since it will |