wok annotate busybox/stuff/busybox-1.31-ash.u @ rev 25076

Up marlin (886)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 14 08:17:07 2022 +0000 (2022-06-14)
parents
children
rev   line source
pascal@23897 1 Some SliTaz scripts (cook) need that...
pascal@23897 2 --- busybox-1.31/shell/ash.c
pascal@23897 3 +++ busybox-1.31/shell/ash.c
pascal@23897 4 @@ -13304,7 +13304,13 @@
pascal@23897 5 if (strchr(name, '/'))
pascal@23897 6 return name;
pascal@23897 7
pascal@23897 8 + /* IIRC standards do not say whether . is to be searched. Bash do it. */
pascal@23897 9 + if (ENABLE_ASH_BASH_COMPAT) {
pascal@23897 10 + fullname = name;
pascal@23897 11 + goto try_cur_dir;
pascal@23897 12 + }
pascal@23897 13 while ((fullname = path_advance(&path, name)) != NULL) {
pascal@23897 14 + try_cur_dir:
pascal@23897 15 if ((stat(fullname, &statb) == 0) && S_ISREG(statb.st_mode)) {
pascal@23897 16 /*
pascal@23897 17 * Don't bother freeing here, since it will