Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106975947
D38489.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
409 B
Referenced Files
None
Subscribers
None
D38489.diff
View Options
diff --git a/usr.bin/wc/wc.c b/usr.bin/wc/wc.c
--- a/usr.bin/wc/wc.c
+++ b/usr.bin/wc/wc.c
@@ -50,7 +50,6 @@
#include <capsicum_helpers.h>
#include <ctype.h>
-#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <locale.h>
@@ -187,7 +186,8 @@
fileargs_free(fa);
xo_close_container("wc");
- xo_finish();
+ if (xo_finish() < 0)
+ xo_err(1, "stdout");
exit(errors == 0 ? 0 : 1);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 9, 9:19 AM (3 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15731209
Default Alt Text
D38489.diff (409 B)
Attached To
Mode
D38489: wc: Drop <err.h> and report an error if xo_finish() fails.
Attached
Detach File
Event Timeline
Log In to Comment