aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-03-03 05:33:13 -0500
committerMike Frysinger <vapier@gentoo.org>2013-03-03 05:33:13 -0500
commit1a018e80058697408ce95142ffc292a5929fcc2b (patch)
tree94bd5651f6a3bda14f5916fb5748afee8d666e83 /libsbutil
parentlibsandbox: preserve more SANDBOX env vars (diff)
downloadsandbox-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.c2
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;