diff options
author | Benjamin Fleischer <fleiben@gmail.com> | 2012-03-09 22:30:14 +0100 |
---|---|---|
committer | Benjamin Fleischer <fleiben@gmail.com> | 2012-03-09 22:30:14 +0100 |
commit | e6f7fb4e5056bf6488595fb02b65abc1ac8080cc (patch) | |
tree | b76e2a7c282dfc2b19b3c5ff464207bd90e54e88 /sshfs.c | |
parent | a6b6b5c820228fe2376705db711d486e9ec866a1 (diff) | |
download | sshfs-e6f7fb4e5056bf6488595fb02b65abc1ac8080cc.tar sshfs-e6f7fb4e5056bf6488595fb02b65abc1ac8080cc.tar.gz sshfs-e6f7fb4e5056bf6488595fb02b65abc1ac8080cc.tar.bz2 sshfs-e6f7fb4e5056bf6488595fb02b65abc1ac8080cc.zip |
Make IDMAP_USER the default option on OS X
UID/GID mapping had been enabled in previous versions of SSHFS for MacFUSE/
OSXFUSE by default. This is the expected behavior.
Diffstat (limited to 'sshfs.c')
-rw-r--r-- | sshfs.c | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -3254,8 +3254,13 @@ static void usage(const char *progname) " [no]truncate fix truncate for old servers (default: off)\n" " [no]buflimit fix buffer fillup bug in server (default: on)\n" " -o idmap=TYPE user/group ID mapping, possible types are:\n" +#if __APPLE__ +" none no translation of the ID space\n" +" user only translate UID/GID of connecting user (default)\n" +#else " none no translation of the ID space (default)\n" " user only translate UID of connecting user\n" +#endif " file translate UIDs/GIDs contained in uidfile/gidfile\n" " -o uidfile=FILE file containing username:remote_uid mappings\n" " -o gidfile=FILE file containing groupname:remote_gid mappings\n" @@ -3791,12 +3796,12 @@ int main(int argc, char *argv[]) sshfs.ptyfd = -1; sshfs.ptyslavefd = -1; sshfs.delay_connect = 0; + sshfs.detect_uid = 0; #if __APPLE__ - sshfs.detect_uid = 1; + sshfs.idmap = IDMAP_USER; #else - sshfs.detect_uid = 0; -#endif sshfs.idmap = IDMAP_NONE; +#endif ssh_add_arg("ssh"); ssh_add_arg("-x"); ssh_add_arg("-a"); |