diff options
author | Kylie McClain <somasis@exherbo.org> | 2015-11-25 21:43:03 -0500 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2016-02-29 17:29:08 +0100 |
commit | 8bf61938904f2c01c6e1ffc3ba900db54f144145 (patch) | |
tree | 25039fcec57b0ceeb789fd22a2f5d42b63ee0ebd | |
parent | a46136e09cb5262eeff56be6322b8352eec44c44 (diff) | |
download | udisks-8bf61938904f2c01c6e1ffc3ba900db54f144145.tar.gz |
udisksctl: Properly redirect stdout
Fixes building with musl-libc.
https://bugs.freedesktop.org/show_bug.cgi?id=93111
-rw-r--r-- | tools/udisksctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/udisksctl.c b/tools/udisksctl.c index 2456a96..3e85e15 100644 --- a/tools/udisksctl.c +++ b/tools/udisksctl.c @@ -229,8 +229,8 @@ _color_run_pager (void) } else { - fclose (stdout); - stdout = _color_pager_out; + fflush (stdout); + dup2 (fileno(_color_pager_out), fileno(stdout)); } out: |