diff options
author | Rob Landley <rob@landley.net> | 2020-03-18 02:20:52 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2020-03-18 02:20:52 -0500 |
commit | 0a3350f63148d08c6b5fb14d82196738fc413da9 (patch) | |
tree | c5fe84788a12f1518bcd106685d1c90c57e31f80 /lib | |
parent | cae14933a6b32bc7260964439f9def316c7520ba (diff) | |
download | toybox-0a3350f63148d08c6b5fb14d82196738fc413da9.tar.gz |
Fix WARN_ONLY (and the one caller feeding it in the field it was checking).
Diffstat (limited to 'lib')
-rw-r--r-- | lib/xwrap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xwrap.c b/lib/xwrap.c index 2f47ac66..555fbd5e 100644 --- a/lib/xwrap.c +++ b/lib/xwrap.c @@ -380,7 +380,7 @@ int xcreate_stdio(char *path, int flags, int mode) { int fd = open(path, (flags^O_CLOEXEC)&~WARN_ONLY, mode); - if (fd == -1) ((mode&WARN_ONLY) ? perror_msg_raw : perror_exit_raw)(path); + if (fd == -1) ((flags&WARN_ONLY) ? perror_msg_raw : perror_exit_raw)(path); return fd; } |