projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e449974
)
unbreak vwarn: print ": " before errno message
author
Rich Felker
<dalias@aerifal.cx>
Wed, 21 Aug 2013 04:49:46 +0000
(
00:49
-0400)
committer
Rich Felker
<dalias@aerifal.cx>
Wed, 21 Aug 2013 04:49:46 +0000
(
00:49
-0400)
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
patch
|
blob
|
history
diff --git
a/src/legacy/err.c
b/src/legacy/err.c
index 7b167b3601daaee8f32f29d601349b42050bf2fd..0d6ab5242d9b769b31ced7fcc1a62fd5273a402c 100644
(file)
--- 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)