wok annotate busybox/stuff/busybox-1.30-ash.u @ rev 20967
updated gigolo (0.4.1 -> 0.4.2)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 05 14:47:27 2019 +0100 (2019-03-05) |
parents | |
children |
rev | line source |
---|---|
pascal@20654 | 1 Some SliTaz scripts (cook) need that... |
pascal@20654 | 2 --- busybox-1.30/shell/ash.c |
pascal@20654 | 3 +++ busybox-1.30/shell/ash.c |
pascal@20654 | 4 @@ -13171,7 +13171,13 @@ |
pascal@20654 | 5 if (strchr(name, '/')) |
pascal@20654 | 6 return name; |
pascal@20654 | 7 |
pascal@20654 | 8 + /* IIRC standards do not say whether . is to be searched. Bash do it. */ |
pascal@20654 | 9 + if (ENABLE_ASH_BASH_COMPAT) { |
pascal@20654 | 10 + fullname = name; |
pascal@20654 | 11 + goto try_cur_dir; |
pascal@20654 | 12 + } |
pascal@20654 | 13 while ((fullname = path_advance(&path, name)) != NULL) { |
pascal@20654 | 14 + try_cur_dir: |
pascal@20654 | 15 if ((stat(fullname, &statb) == 0) && S_ISREG(statb.st_mode)) { |
pascal@20654 | 16 /* |
pascal@20654 | 17 * Don't bother freeing here, since it will |