wok diff busybox/stuff/busybox-1.31-ash.u @ rev 22057

updated tumbler and tumbler-dev (0.1.27 -> 0.2.7)
author Hans-G?nter Theisgen
date Wed Oct 23 16:26:38 2019 +0100 (2019-10-23)
parents
children 7f2789b79625
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/busybox/stuff/busybox-1.31-ash.u	Wed Oct 23 16:26:38 2019 +0100
     1.3 @@ -0,0 +1,17 @@
     1.4 +Some SliTaz scripts (cook) need that... 
     1.5 +--- busybox-1.30/shell/ash.c
     1.6 ++++ busybox-1.30/shell/ash.c
     1.7 +@@ -13300,7 +13300,13 @@
     1.8 + 	if (strchr(name, '/'))
     1.9 + 		return name;
    1.10 + 
    1.11 ++	/* IIRC standards do not say whether . is to be searched. Bash do it. */
    1.12 ++	if (ENABLE_ASH_BASH_COMPAT) {
    1.13 ++		fullname = name;
    1.14 ++		goto try_cur_dir;
    1.15 ++	}
    1.16 +	while ((fullname = path_advance(&path, name)) != NULL) {
    1.17 ++ try_cur_dir:
    1.18 + 		if ((stat(fullname, &statb) == 0) && S_ISREG(statb.st_mode)) {
    1.19 + 			/*
    1.20 + 			 * Don't bother freeing here, since it will