wok-tiny annotate busybox-net/stuff/busybox-git-ash.u @ rev 157

Add geninitramfs & busybox-net
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 28 16:03:43 2020 +0100 (2020-02-28)
parents
children
rev   line source
pascal@157 1 Some SliTaz scripts (cook) need that...
pascal@157 2 --- busybox-git/shell/ash.c
pascal@157 3 +++ busybox-git/shell/ash.c
pascal@157 4 @@ -12632,7 +12632,13 @@
pascal@157 5 if (strchr(name, '/'))
pascal@157 6 return name;
pascal@157 7
pascal@157 8 + /* IIRC standards do not say whether . is to be searched. Bash do it. */
pascal@157 9 + if (ENABLE_ASH_BASH_COMPAT) {
pascal@157 10 + fullname = name;
pascal@157 11 + goto try_cur_dir;
pascal@157 12 + }
pascal@157 13 while ((fullname = path_advance(&path, name)) != NULL) {
pascal@157 14 + try_cur_dir:
pascal@157 15 if ((stat(fullname, &statb) == 0) && S_ISREG(statb.st_mode)) {
pascal@157 16 /*
pascal@157 17 * Don't bother freeing here, since it will