Displaying 2 results from an estimated 2 matches for "d7ced357".
Did you mean:
57c6d357
2020 Mar 28
0
[klibc:update-dash] dash: exec: Return 126 on most errors in shellexec
..., ENAMETOOLONG and ELOOP.
Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au>
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/dash/exec.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/usr/dash/exec.c b/usr/dash/exec.c
index e9e29b7e..d7ced357 100644
--- a/usr/dash/exec.c
+++ b/usr/dash/exec.c
@@ -130,15 +130,15 @@ shellexec(char **argv, const char *path, int idx)
/* Map to POSIX errors */
switch (e) {
- case EACCES:
+ default:
exerrno = 126;
break;
+ case ELOOP:
+ case ENAMETOOLONG:
case ENOENT:
+ case ENOTDIR:
exerrno...
2020 Mar 28
0
[klibc:update-dash] dash: memalloc: Add growstackto helper
...ff-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/dash/exec.c | 4 +---
usr/dash/memalloc.c | 20 +++++++++-----------
usr/dash/memalloc.h | 1 +
usr/dash/parser.c | 4 +---
4 files changed, 12 insertions(+), 17 deletions(-)
diff --git a/usr/dash/exec.c b/usr/dash/exec.c
index d7ced357..c98f14c0 100644
--- a/usr/dash/exec.c
+++ b/usr/dash/exec.c
@@ -195,9 +195,7 @@ padvance(const char **path, const char *name)
start = *path;
for (p = start ; *p && *p != ':' && *p != '%' ; p++);
len = p - start + strlen(name) + 2; /* "2" is for '...