Displaying 2 results from an estimated 2 matches for "6652ccc0".
2020 Mar 28
0
[klibc:update-dash] dash: eval: Report I/O error on stdout
...labora.co.uk>
Bug-Debian: http://bugs.debian.org/690473
Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au>
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/dash/eval.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/usr/dash/eval.c b/usr/dash/eval.c
index 6652ccc0..01bc5234 100644
--- a/usr/dash/eval.c
+++ b/usr/dash/eval.c
@@ -952,6 +952,8 @@ evalbltin(const struct builtincmd *cmd, int argc, char **argv, int flags)
else
status = (*cmd->builtin)(argc, argv);
flushall();
+ if (outerr(out1))
+ warnx("%s: I/O error", commandname);
status...
2020 Mar 28
0
[klibc:update-dash] dash: eval: Always set localvar_stop
...at gondor.apana.org.au>
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/dash/eval.c | 9 +++------
usr/dash/var.c | 12 +++++++++---
usr/dash/var.h | 2 +-
3 files changed, 13 insertions(+), 10 deletions(-)
diff --git a/usr/dash/eval.c b/usr/dash/eval.c
index 7bb636e1..6652ccc0 100644
--- a/usr/dash/eval.c
+++ b/usr/dash/eval.c
@@ -809,6 +809,8 @@ evalcommand(union node *cmd, int flags)
vflags = VEXPORT;
}
+ localvar_stop = pushlocalvars(vlocal);
+
/* Reserve one extra spot at the front for shellexec. */
nargv = stalloc(sizeof (char *) * (argc + 2));
argv =...