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

openal: added dependency libatomic
author Hans-G?nter Theisgen
date Mon Apr 20 13:45:45 2020 +0100 (2020-04-20)
parents 0830d8859de8
children
rev   line source
pascal@21761 1 Some SliTaz scripts (cook) need that...
pascal@22095 2 --- busybox-1.31/shell/ash.c
pascal@22095 3 +++ busybox-1.31/shell/ash.c
pascal@22095 4 @@ -13304,7 +13304,13 @@
pascal@21761 5 if (strchr(name, '/'))
pascal@21761 6 return name;
pascal@21761 7
pascal@21761 8 + /* IIRC standards do not say whether . is to be searched. Bash do it. */
pascal@21761 9 + if (ENABLE_ASH_BASH_COMPAT) {
pascal@21761 10 + fullname = name;
pascal@21761 11 + goto try_cur_dir;
pascal@21761 12 + }
pascal@21761 13 while ((fullname = path_advance(&path, name)) != NULL) {
pascal@21761 14 + try_cur_dir:
pascal@21761 15 if ((stat(fullname, &statb) == 0) && S_ISREG(statb.st_mode)) {
pascal@21761 16 /*
pascal@21761 17 * Don't bother freeing here, since it will