# HG changeset patch # User Pascal Bellard # Date 1547374761 -3600 # Node ID 652219197091eb457e84a079759d2ddc9a48080d # Parent f635783d66b396bd5901de15ad8a748bb580b6de busybox: add cook workaround diff -r f635783d66b3 -r 652219197091 busybox/receipt --- a/busybox/receipt Sun Jan 13 10:59:57 2019 +0100 +++ b/busybox/receipt Sun Jan 13 11:19:21 2019 +0100 @@ -47,6 +47,7 @@ shutdown.u scriptreplay.u mkfs_vfat.u +ash.u EOT cp $stuff/$PACKAGE-${VERSION%.*}.config .config } diff -r f635783d66b3 -r 652219197091 busybox/stuff/busybox-1.30-ash.u --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/busybox/stuff/busybox-1.30-ash.u Sun Jan 13 11:19:21 2019 +0100 @@ -0,0 +1,17 @@ +Some SliTaz scripts (cook) need that... +--- busybox-1.30/shell/ash.c ++++ busybox-1.30/shell/ash.c +@@ -13171,7 +13171,13 @@ + if (strchr(name, '/')) + return name; + ++ /* IIRC standards do not say whether . is to be searched. Bash do it. */ ++ if (ENABLE_ASH_BASH_COMPAT) { ++ fullname = name; ++ goto try_cur_dir; ++ } + while ((fullname = path_advance(&path, name)) != NULL) { ++ try_cur_dir: + if ((stat(fullname, &statb) == 0) && S_ISREG(statb.st_mode)) { + /* + * Don't bother freeing here, since it will