search for: exerrno

Displaying 3 results from an estimated 3 matches for "exerrno".

Did you mean: eerrno
2020 Mar 28
0
[klibc:update-dash] dash: exec: Return 126 on most errors in shellexec
...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 = 127; break; - default: - exerrno = 2; - break; } exitstatus = exerrno; TRACE(("shellexec failed for %s, errno %d, suppressint %d\n",
2020 Mar 28
0
[klibc:update-dash] dash: eval: Only restore exit status on exit/return
...V_EXIT) { exexit: - exraise(EXEXIT); + exraise(EXEND); } popstackmark(&smark); diff --git a/usr/dash/exec.c b/usr/dash/exec.c index 9d0215a6..87354d49 100644 --- a/usr/dash/exec.c +++ b/usr/dash/exec.c @@ -143,7 +143,7 @@ shellexec(char **argv, const char *path, int idx) exitstatus = exerrno; TRACE(("shellexec failed for %s, errno %d, suppressint %d\n", argv[0], e, suppressint )); - exerror(EXEXIT, "%s: %s", argv[0], errmsg(e, E_EXEC)); + exerror(EXEND, "%s: %s", argv[0], errmsg(e, E_EXEC)); /* NOTREACHED */ } diff --git a/usr/dash/main.c b/usr/d...
2007 Aug 23
0
[git patch] klibc dash 0.5.4 update
...at gondor.apana.org.au> Signed-off-by: maximilian attems <max at stro.at> diff --git a/usr/dash/exec.c b/usr/dash/exec.c index c55683d..8a1f722 100644 --- a/usr/dash/exec.c +++ b/usr/dash/exec.c @@ -110,7 +110,6 @@ shellexec(char **argv, const char *path, int idx) char **envp; int exerrno; - clearredir(1); envp = environment(); if (strchr(argv[0], '/') != NULL) { tryexec(argv[0], argv, envp); diff --git a/usr/dash/input.c b/usr/dash/input.c index 7f99d4a..11f7a3f 100644 --- a/usr/dash/input.c +++ b/usr/dash/input.c @@ -452,7 +452,6 @@ out: void setinputfd(int fd,...