aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mount_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mount_util.c')
-rw-r--r--lib/mount_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mount_util.c b/lib/mount_util.c
index dbf9219..25b7e43 100644
--- a/lib/mount_util.c
+++ b/lib/mount_util.c
@@ -163,7 +163,7 @@ static int add_mount(const char *progname, const char *fsname,
* Hide output, because old versions don't support
* --no-canonicalize
*/
- int fd = open("/dev/null", O_RDONLY);
+ int fd = open("/dev/null", O_WRONLY);
dup2(fd, 1);
dup2(fd, 2);