[PATCH v2 1/2] ash: introduce ash_perror_msg_and_raise_error()

Ron Yorston rmy at pobox.com
Sun Jul 23 14:47:49 UTC 2017


Johannes Schindelin wrote:
>@@ -1263,6 +1263,8 @@ ash_vmsg(const char *msg, va_list ap)
> 			fprintf(stderr, "line %d: ", startlinno);
> 	}
> 	vfprintf(stderr, msg, ap);
>+	if (strerr)
>+		vfprintf(stderr, ": ", strerr);
> 	newline_and_flush(stderr);
> }
> 

I think that should be:

>+	if (strerr)
>+		fprintf(stderr, ": %s", strerr);

Ron


More information about the busybox mailing list