wok-6.x annotate busybox/stuff/busybox-1.31-ash.u @ rev 24354

created recipe for py3k-dbus-1.2.18
author Hans-G?nter Theisgen
date Thu Feb 03 15:11:19 2022 +0100 (2022-02-03)
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