wok-6.x view busybox/stuff/busybox-1.31-ash.u @ rev 22785
updated fuse-emulator (1.0.0.1 -> 1.5.7)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Jan 26 17:07:26 2020 +0100 (2020-01-26) |
parents | 0830d8859de8 |
children |
line source
1 Some SliTaz scripts (cook) need that...
2 --- busybox-1.31/shell/ash.c
3 +++ busybox-1.31/shell/ash.c
4 @@ -13304,7 +13304,13 @@
5 if (strchr(name, '/'))
6 return name;
8 + /* IIRC standards do not say whether . is to be searched. Bash do it. */
9 + if (ENABLE_ASH_BASH_COMPAT) {
10 + fullname = name;
11 + goto try_cur_dir;
12 + }
13 while ((fullname = path_advance(&path, name)) != NULL) {
14 + try_cur_dir:
15 if ((stat(fullname, &statb) == 0) && S_ISREG(statb.st_mode)) {
16 /*
17 * Don't bother freeing here, since it will