Displaying 3 results from an estimated 3 matches for "71b0f774".
2019 Jan 25
0
[klibc:update-dash] redir: Fix typo in noclobber code
...vda.linux at googlemail.com>
Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au>
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/dash/redir.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/usr/dash/redir.c b/usr/dash/redir.c
index f96a76bc..71b0f774 100644
--- a/usr/dash/redir.c
+++ b/usr/dash/redir.c
@@ -192,7 +192,7 @@ openredirect(union node *redir)
} else if (!S_ISREG(sb.st_mode)) {
if ((f = open64(fname, O_WRONLY, 0666)) < 0)
goto ecreate;
- if (fstat64(f, &sb) < 0 && S_ISREG(sb.st_mode)) {
+ if (!fs...
2020 Mar 28
0
[klibc:update-dash] dash: redir: Fix typo in noclobber code
...vda.linux at googlemail.com>
Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au>
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/dash/redir.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/usr/dash/redir.c b/usr/dash/redir.c
index f96a76bc..71b0f774 100644
--- a/usr/dash/redir.c
+++ b/usr/dash/redir.c
@@ -192,7 +192,7 @@ openredirect(union node *redir)
} else if (!S_ISREG(sb.st_mode)) {
if ((f = open64(fname, O_WRONLY, 0666)) < 0)
goto ecreate;
- if (fstat64(f, &sb) < 0 && S_ISREG(sb.st_mode)) {
+ if (!fs...
2020 Mar 28
0
[klibc:update-dash] dash: mkinit: Split reset into exitreset and reset
...@ -115,6 +122,7 @@ char reset[] = "\
struct event event[] = {
{"INIT", "init", init},
+ {"EXITRESET", "exitreset", exitreset},
{"RESET", "reset", reset},
{NULL, NULL}
};
diff --git a/usr/dash/redir.c b/usr/dash/redir.c
index 71b0f774..e67cc0ab 100644
--- a/usr/dash/redir.c
+++ b/usr/dash/redir.c
@@ -374,7 +374,7 @@ popredir(int drop)
INCLUDE "redir.h"
-RESET {
+EXITRESET {
/*
* Discard all saved file descriptors.
*/