[klibc] [klibc:update-dash] dash: eval: Use sh_warnx instead of warnx

klibc-bot for Herbert Xu herbert at gondor.apana.org.au
Sat Mar 28 14:49:37 PDT 2020

Commit-ID:  ff52f9cbec8aa6ef0c1fc4e07e8b947c41d643cf
Gitweb:     http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=ff52f9cbec8aa6ef0c1fc4e07e8b947c41d643cf
Author:     Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Tue, 20 Nov 2018 10:09:26 +0800
Committer:  Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 28 Mar 2020 21:42:55 +0000

[klibc] dash: eval: Use sh_warnx instead of warnx

[ dash commit a500fb1c1bad9865bd1bb5cd084924062feb896e ]

This patch fixes a typo in evalbltin where warnx was used instead
of sh_warnx.

Reported-by: Antonio Ospite <ao2 at ao2.it>
Fixes: 8e43729547b5 ("eval: Report I/O error on stdout")

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, 1 insertion(+), 1 deletion(-)

diff --git a/usr/dash/eval.c b/usr/dash/eval.c
index 4981f156..5074aa94 100644
--- a/usr/dash/eval.c
+++ b/usr/dash/eval.c
@@ -953,7 +953,7 @@ evalbltin(const struct builtincmd *cmd, int argc, char **argv, int flags)
 		status = (*cmd->builtin)(argc, argv);
 	if (outerr(out1))
-		warnx("%s: I/O error", commandname);
+		sh_warnx("%s: I/O error", commandname);
 	status |= outerr(out1);
 	exitstatus = status;

More information about the klibc mailing list