]> arthur.barton.de Git - bup.git/commitdiff
add -o/--allow-other to bup-fuse
authorJon Dowland <jmtd@debian.org>
Wed, 28 Apr 2010 13:50:30 +0000 (14:50 +0100)
committerAvery Pennarun <apenwarr@gmail.com>
Wed, 28 Apr 2010 18:14:29 +0000 (14:14 -0400)
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 <jmtd@debian.org>
Documentation/bup-fuse.1.md
cmd/fuse-cmd.py

index af02b777df75996cfcd81fc74dd15636d19cb559..1aa16b262b416f12dea2475c5911d768e660848b 100644 (file)
@@ -8,7 +8,7 @@ bup fuse - mount a bup repository as a filesystem
 
 # SYNOPSIS
 
-bup fuse [-d] [-f] <mountpoint>
+bup fuse [-d] [-f] [-o] <mountpoint>
 
 # 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
 
index 64655d472c4d08233aa0437da5e28c28fdeb8715..5e9809ab9db7135aea9bee41d00c5fb0f8d50029 100755 (executable)
@@ -114,6 +114,7 @@ bup fuse [-d] [-f] <mountpoint>
 --
 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()