aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sshfs.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/sshfs.c b/sshfs.c
index 0649805..82c23eb 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -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");