Bug#534727: fuse-utils: fusermount should not silently ignore command line arguments

2009-07-02 Thread Miklos Szeredi
On Fri, 26 Jun 2009, Sebastian Harl wrote:
 fusermount, when called with multiple mount-points, silently ignores the
 further arguments. Instead it should imho print a warning message.

Thanks, applied with a modification that fusermount exits with an
error if too many mountpoint arguments are specified.

Miklos



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#534727: fuse-utils: fusermount should not silently ignore command line arguments

2009-06-26 Thread Sebastian Harl
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