From 9663f9b2ab34caa570fe5186b1411780c7b843ec Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Tue, 25 Feb 2020 14:21:03 +0000 Subject: [PATCH] mount: ignore --allow-root flag with a warning as it has been removed upstream For background see: https://github.com/bazil/fuse/issues/144 --- cmd/mount/mount.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/mount/mount.go b/cmd/mount/mount.go index c5fc7f1a4..2d5e2d4f2 100644 --- a/cmd/mount/mount.go +++ b/cmd/mount/mount.go @@ -51,7 +51,8 @@ func mountOptions(device string) (options []fuse.MountOption) { options = append(options, fuse.AllowOther()) } if mountlib.AllowRoot { - options = append(options, fuse.AllowRoot()) + // options = append(options, fuse.AllowRoot()) + fs.Errorf(nil, "Ignoring --allow-root. Support has been removed upstream - see https://github.com/bazil/fuse/issues/144 for more info") } if mountlib.DefaultPermissions { options = append(options, fuse.DefaultPermissions())