wok annotate busybox/stuff/busybox-1.30-ash.u @ rev 23848

inkscape: update build_depends
author Richard Dunbar <mojo@slitaz.org>
date Sun Jun 14 23:18:03 2020 -0400 (2020-06-14)
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