artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0a7676
)
Write error message instead of duplicated file name on error.
author
tobias
<tobias@openbsd.org>
Sun, 25 Oct 2015 20:18:37 +0000
(20:18 +0000)
committer
tobias
<tobias@openbsd.org>
Sun, 25 Oct 2015 20:18:37 +0000
(20:18 +0000)
ok deraadt
usr.bin/sed/main.c
patch
|
blob
|
history
diff --git
a/usr.bin/sed/main.c
b/usr.bin/sed/main.c
index
015b8bc
..
7df35bb
100644
(file)
--- a/
usr.bin/sed/main.c
+++ b/
usr.bin/sed/main.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: main.c,v 1.2
7 2015/10/10 20:18:30 deraadt Exp $
*/
+/* $OpenBSD: main.c,v 1.2
8 2015/10/25 20:18:37 tobias Exp $
*/
/*-
* Copyright (c) 1992 Diomidis Spinellis.
@@
-389,7
+389,7
@@
mf_fgets(SPACE *sp, enum e_spflag spflag)
outfname = "stdout";
}
if ((infile = fopen(fname, "r")) == NULL) {
- err(WARNING, "%s",
fname
);
+ err(WARNING, "%s",
strerror(errno)
);
rval = 1;
continue;
}