aboutsummaryrefslogtreecommitdiff
path: root/lib/mount_bsd.c
diff options
context:
space:
mode:
authorGravatar Miklos Szeredi <miklos@szeredi.hu>2006-02-02 15:15:21 +0000
committerGravatar Miklos Szeredi <miklos@szeredi.hu>2006-02-02 15:15:21 +0000
commitd66b72864c74bfea4cde6d9713708afa4e40a346 (patch)
treef71e04455014862a834c1bb9175e3afeae8a03e1 /lib/mount_bsd.c
parentce28c7e8288b28bd380a75b6240e1fe65a7cc304 (diff)
merge fuse_2_5_bugfix
Diffstat (limited to 'lib/mount_bsd.c')
-rw-r--r--lib/mount_bsd.c3
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;