wok annotate busybox/stuff/busybox-1.27-ash.u @ rev 20001
Add vfsync
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 30 12:39:42 2017 +0200 (2017-07-30) |
parents | 08bb2369e4d6 |
children |
rev | line source |
---|---|
pascal@19996 | 1 Some SliTaz scripts (cook) need that... |
pascal@19996 | 2 --- busybox-1.27/shell/ash.c |
pascal@19996 | 3 +++ busybox-1.27/shell/ash.c |
pascal@20001 | 4 @@ -12632,7 +12632,13 @@ |
pascal@19996 | 5 if (strchr(name, '/')) |
pascal@19996 | 6 return name; |
pascal@19996 | 7 |
pascal@20001 | 8 + /* IIRC standards do not say whether . is to be searched. Bash do it. */ |
pascal@20001 | 9 + if (ENABLE_ASH_BASH_COMPAT) { |
pascal@20001 | 10 + fullname = name; |
pascal@20001 | 11 + goto try_cur_dir; |
pascal@20001 | 12 + } |
pascal@20001 | 13 while ((fullname = path_advance(&path, name)) != NULL) { |
pascal@20001 | 14 + try_cur_dir: |
pascal@19996 | 15 if ((stat(fullname, &statb) == 0) && S_ISREG(statb.st_mode)) { |
pascal@19996 | 16 /* |
pascal@19996 | 17 * Don't bother freeing here, since it will |