diff options
author | Mike Frysinger <vapier@gentoo.org> | 2013-03-03 05:33:13 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2013-03-03 05:33:13 -0500 |
commit | 1a018e80058697408ce95142ffc292a5929fcc2b (patch) | |
tree | 94bd5651f6a3bda14f5916fb5748afee8d666e83 /libsbutil | |
parent | libsandbox: preserve more SANDBOX env vars (diff) | |
download | sandbox-1a018e80058697408ce95142ffc292a5929fcc2b.tar.gz sandbox-1a018e80058697408ce95142ffc292a5929fcc2b.tar.bz2 sandbox-1a018e80058697408ce95142ffc292a5929fcc2b.zip |
sb_efuncs: fix thinko in message patch
Forgot to assign the fallback open to the fd. Whee.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libsbutil')
-rw-r--r-- | libsbutil/sb_efuncs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsbutil/sb_efuncs.c b/libsbutil/sb_efuncs.c index 80064c6..c855257 100644 --- a/libsbutil/sb_efuncs.c +++ b/libsbutil/sb_efuncs.c @@ -43,7 +43,7 @@ static void sb_vefunc(const char *prog, const char *color, const char *format, v else fd = -1; if (fd == -1) - sbio_open(sbio_fallback_path, O_WRONLY|O_CLOEXEC, 0); + fd = sbio_open(sbio_fallback_path, O_WRONLY|O_CLOEXEC, 0); fp = fd == -1 ? NULL : fdopen(fd, "ae"); if (!fp) fp = stderr; |