Package: fuse-utils
Version: 2.7.4-1.1
Severity: minor
Tags: patch
Hi,
fusermount, when called with multiple mount-points, silently ignores the
further arguments. Instead it should imho print a warning message.
Attached is a trivial patch to fix this.
Cheers,
Sebastian
--
Sebastian tokkee Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/
Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin
From 9ce172611ebc2665f2c02b6ade645e7f1f0dfdc2 Mon Sep 17 00:00:00 2001
From: Sebastian Harl tok...@debian.org
Date: Fri, 26 Jun 2009 19:49:05 +0200
Subject: [PATCH] fusermount: Do not silently ignore command line arguments.
---
util/fusermount.c |2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/util/fusermount.c b/util/fusermount.c
index e3c98c5..6d94ed5 100644
--- a/util/fusermount.c
+++ b/util/fusermount.c
@@ -910,6 +910,8 @@ int main(int argc, char *argv[])
fprintf(stderr, %s: missing mountpoint argument\n, progname);
exit(1);
}
+ else if (argc optind + 1)
+ fprintf(stderr, %s: ignoring further mountpoint arguments\n, progname);
origmnt = argv[optind];
--
1.6.2.2.414.g81aa
signature.asc
Description: Digital signature