Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAL3m8eDRv_TzoigHUY6MSTLgVRBLtKEY03MrCTXGO6duxUz62g@mail.gmail.com>
Date: Mon, 19 Aug 2013 20:53:13 -0500
From: Strake <strake888@...il.com>
To: musl <musl@...ts.openwall.com>
Subject: [PATCH] unbreak vwarn: print ": " before errno message

>From dde16994da5bd333c9ae1f38cc9940a079212e8b Mon Sep 17 00:00:00 2001
From: Strake <strake888@...il.com>
Date: Mon, 19 Aug 2013 20:56:46 -0500
Subject: [PATCH] unbreak vwarn: print ": " before errno message

---
 src/legacy/err.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/legacy/err.c b/src/legacy/err.c
index 7b167b3..0d6ab52 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)
-- 
1.7.11.1

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.