aboutsummaryrefslogtreecommitdiff
path: root/lib/mount_util.c
diff options
context:
space:
mode:
authorGravatar Miklos Szeredi <mszeredi@suse.cz>2011-05-19 13:03:56 +0200
committerGravatar Miklos Szeredi <mszeredi@suse.cz>2011-05-19 13:03:56 +0200
commitd84fc1f429e667b9ba11ddc808aa394d6cbadc41 (patch)
treea42892b44428c242a8d6b1b86504877f45939edf /lib/mount_util.c
parentbc2d367edba875551abfd192ffa147ca5c528647 (diff)
Don't hide output of /bin/mount
Diffstat (limited to 'lib/mount_util.c')
-rw-r--r--lib/mount_util.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/mount_util.c b/lib/mount_util.c
index aafddfb..3d2f4cd 100644
--- a/lib/mount_util.c
+++ b/lib/mount_util.c
@@ -95,16 +95,6 @@ static int add_mount(const char *progname, const char *fsname,
goto out_restore;
}
if (res == 0) {
- /*
- * Hide output, because old versions don't support
- * --no-canonicalize
- */
- int fd = open("/dev/null", O_WRONLY);
- if (fd >= 0) {
- dup2(fd, 1);
- dup2(fd, 2);
- }
-
sigprocmask(SIG_SETMASK, &oldmask, NULL);
setuid(geteuid());
execl("/bin/mount", "/bin/mount", "--no-canonicalize", "-i",