diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2006-02-02 15:15:21 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2006-02-02 15:15:21 +0000 |
commit | d66b72864c74bfea4cde6d9713708afa4e40a346 (patch) | |
tree | f71e04455014862a834c1bb9175e3afeae8a03e1 /lib | |
parent | ce28c7e8288b28bd380a75b6240e1fe65a7cc304 (diff) |
merge fuse_2_5_bugfix
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mount_bsd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/mount_bsd.c b/lib/mount_bsd.c index b0f2e35..cb1b2b9 100644 --- a/lib/mount_bsd.c +++ b/lib/mount_bsd.c @@ -161,6 +161,7 @@ void fuse_unmount(const char *mountpoint) FILE *sf; int rv; char *seekscript = + "exec 2>/dev/null; " /* error message is annoying in help output */ "/usr/bin/fstat " FUSE_DEV_TRUNK "* | " "/usr/bin/awk 'BEGIN{ getline; if (! ($3 == \"PID\" && $10 == \"NAME\")) exit 1; }; " " { if ($3 == %d) print $10; }' | " @@ -186,7 +187,7 @@ void fuse_unmount(const char *mountpoint) system(umount_cmd); } -int fuse_mount_core(const char *mountpoint, const char *opts) +static int fuse_mount_core(const char *mountpoint, const char *opts) { const char *mountprog = FUSERMOUNT_PROG; int fd; |