Page MenuHomeFreeBSD

D10897.id28806.diff
No OneTemporary

D10897.id28806.diff

Index: usr.bin/hexdump/display.c
===================================================================
--- usr.bin/hexdump/display.c
+++ usr.bin/hexdump/display.c
@@ -361,12 +361,12 @@
if (caph_limit_stream(fileno(stdin), CAPH_READ) < 0)
err(1, "unable to restrict %s",
- statok ? _argv[-1] : "stdin");
+ statok ? *_argv : "stdin");
/*
* We've opened our last input file; enter capsicum sandbox.
*/
- if (*_argv == NULL) {
+ if (statok == 0 || *(_argv + 1) == NULL) {
if (cap_enter() < 0 && errno != ENOSYS)
err(1, "unable to enter capability mode");
}

File Metadata

Mime Type
text/plain
Expires
Wed, Sep 2, 3:46 AM (7 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37895183
Default Alt Text
D10897.id28806.diff (599 B)

Event Timeline