wok annotate busybox/stuff/busybox-1.27-ash.u @ rev 22501

updated aspell-pl (6.0_20061121-0 -> 6.0_20191230-0)
author Hans-G?nter Theisgen
date Wed Jan 01 09:49:31 2020 +0100 (2020-01-01)
parents
children
rev   line source
pascal@20208 1 Some SliTaz scripts (cook) need that...
pascal@20208 2 --- busybox-1.27/shell/ash.c
pascal@20208 3 +++ busybox-1.27/shell/ash.c
pascal@20208 4 @@ -12632,7 +12632,13 @@
pascal@20208 5 if (strchr(name, '/'))
pascal@20208 6 return name;
pascal@20208 7
pascal@20208 8 + /* IIRC standards do not say whether . is to be searched. Bash do it. */
pascal@20208 9 + if (ENABLE_ASH_BASH_COMPAT) {
pascal@20208 10 + fullname = name;
pascal@20208 11 + goto try_cur_dir;
pascal@20208 12 + }
pascal@20208 13 while ((fullname = path_advance(&path, name)) != NULL) {
pascal@20208 14 + try_cur_dir:
pascal@20208 15 if ((stat(fullname, &statb) == 0) && S_ISREG(statb.st_mode)) {
pascal@20208 16 /*
pascal@20208 17 * Don't bother freeing here, since it will