From e04f045f5c29ca4c78385fef669be489d1630b5d Mon Sep 17 00:00:00 2001 From: Jon Dowland Date: Wed, 28 Apr 2010 14:50:30 +0100 Subject: [PATCH] add -o/--allow-other to bup-fuse Setting the fuse option allow_other will fail if user_allow_other is not set in fuse.conf. Add toggle -o/--allow-other to bup-fuse (disabled by default). Signed-off-by: Jon Dowland --- Documentation/bup-fuse.1.md | 5 ++++- cmd/fuse-cmd.py | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Documentation/bup-fuse.1.md b/Documentation/bup-fuse.1.md index af02b77..1aa16b2 100644 --- a/Documentation/bup-fuse.1.md +++ b/Documentation/bup-fuse.1.md @@ -8,7 +8,7 @@ bup fuse - mount a bup repository as a filesystem # SYNOPSIS -bup fuse [-d] [-f] +bup fuse [-d] [-f] [-o] # DESCRIPTION @@ -33,6 +33,9 @@ by all users. : run in the foreground and exit only when the filesystem is unmounted. +-o, --allow-other +: permit other users to access the filesystem. Necessary for + exporting the filesystem via Samba, for example. # EXAMPLE diff --git a/cmd/fuse-cmd.py b/cmd/fuse-cmd.py index 64655d4..5e9809a 100755 --- a/cmd/fuse-cmd.py +++ b/cmd/fuse-cmd.py @@ -114,6 +114,7 @@ bup fuse [-d] [-f] -- d,debug increase debug level f,foreground run in foreground +o,allow-other allow other users to access the filesystem """ o = options.Options('bup fuse', optspec) (opt, flags, extra) = o.parse(sys.argv[1:]) @@ -131,6 +132,7 @@ if opt.foreground: f.fuse_args.setmod('foreground') print f.multithreaded f.multithreaded = False -f.fuse_args.add('allow_other') +if opt.allow_other: + f.fuse_args.add('allow_other') f.main() -- 2.39.2