Browse Source

sshfs: only pass allow_root if /etc/fuse.conf agrees

Signed-off-by: Alejandro Mery <amery@geeks.cl>
master
Alejandro Mery 10 years ago
parent
commit
07c655c3e8
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      lib/sshfs_wrapper.sh

+ 8
- 1
lib/sshfs_wrapper.sh

@ -40,7 +40,14 @@ fi
case "$M" in
sshfs)
exec "$M" -o allow_root -o reconnect -C "$@" \
sshfs_opt="-o reconnect -C"
if grep -q '^user_allow_other$' /etc/fuse.conf 2> /dev/null; then
sshfs_opt="$sshfs_opt -o allow_root"
else
echo "please enable user_allow_other in /etc/fuse.conf and make it readable" >&2
fi
exec "$M" $sshfs_opt "$@" \
"$R" "$D"
;;
flickrfs)

Loading…
Cancel
Save