# HG changeset patch # User Pascal Bellard # Date 1402995123 -7200 # Node ID f378d6411e2c20a9b366dafca750dad6a6f2b517 # Parent fc1b989581918f57a01562e7617c1173fcd99b5e sshfs-fuse/rsshfs: allow non root users diff -r fc1b98958191 -r f378d6411e2c sshfs-fuse/stuff/rsshfs --- a/sshfs-fuse/stuff/rsshfs Tue Jun 17 10:26:10 2014 +0200 +++ b/sshfs-fuse/stuff/rsshfs Tue Jun 17 10:52:03 2014 +0200 @@ -18,10 +18,12 @@ ;; *) fifo=/tmp/rsshfs-$$ + ro="" mkfifo $fifo case " $@ " in - *\ -o\ ro\ *) sftp-server -R ;; - *) sftp-server ;; - esac <$fifo | ssh "$rhost" sshfs -o slave ":$lpath" "$rpath" "$@" >$fifo + *\ -o\ ro\ *) ro="-R" + esac + /usr/sbin/sftp-server $ro <$fifo | \ + ssh "$rhost" sshfs -o slave ":$lpath" "$rpath" "$@" >$fifo rm -f $fifo esac