From: Miklos Szeredi Date: Fri, 20 Jan 2006 19:30:45 +0000 (+0000) Subject: fix X-Git-Tag: fuse_2_5_2~4 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=701f651fa6ed1a6d7505a8fcd746f368bf727654;p=qemu-gpiodev%2Flibfuse.git fix --- diff --git a/ChangeLog b/ChangeLog index 89fe386..85a9382 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,9 @@ * fuse_opt: add new helper constants FUSE_OPT_KEY_KEEP and FUSE_OPT_KEY_DISCARD + * Sanitize storage type and help message in mount_bsd.c. Patch + from Csaba Henk + 2006-01-19 Miklos Szeredi * lib: if "fsname=" option was given, pass it to fusermount 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;