From 580b8d8c52624f17e39b19e8cc9e0cbea1510b45 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 21 Aug 2013 00:49:46 -0400 Subject: unbreak vwarn: print ": " before errno message patch by Strake. this seems to be a regression caused by fixing the behavior of perror("") to match perror(0) at some point in the past. --- src/legacy/err.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/legacy') diff --git a/src/legacy/err.c b/src/legacy/err.c index 7b167b36..0d6ab524 100644 --- a/src/legacy/err.c +++ b/src/legacy/err.c @@ -8,8 +8,11 @@ extern char *__progname; void vwarn(const char *fmt, va_list ap) { fprintf (stderr, "%s: ", __progname); - if (fmt) vfprintf(stderr, fmt, ap); - perror(""); + if (fmt) { + vfprintf(stderr, fmt, ap); + fputs (": ", stderr); + } + perror(0); } void vwarnx(const char *fmt, va_list ap) -- cgit v1.2.1