diff options
| author | Michael Forney <mforney@mforney.org> | 2018-05-10 12:30:19 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2018-05-10 13:00:22 -0700 |
| commit | 59cc7cd24d6884bd5daff3efcdb39ea074319344 (patch) | |
| tree | 6c257826964b5e55ce8ac1d56c3257e9b25bfde1 /pkg/sshfs/patch/0007-Disable-uidmap-and-gidmap-support.patch | |
| parent | 5a4f3899c1c06147c94b8f81de2883244c411873 (diff) | |
sshfs: Update to 3.3.1
Diffstat (limited to 'pkg/sshfs/patch/0007-Disable-uidmap-and-gidmap-support.patch')
| -rw-r--r-- | pkg/sshfs/patch/0007-Disable-uidmap-and-gidmap-support.patch | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/pkg/sshfs/patch/0007-Disable-uidmap-and-gidmap-support.patch b/pkg/sshfs/patch/0007-Disable-uidmap-and-gidmap-support.patch index 69656ccd..c10297d0 100644 --- a/pkg/sshfs/patch/0007-Disable-uidmap-and-gidmap-support.patch +++ b/pkg/sshfs/patch/0007-Disable-uidmap-and-gidmap-support.patch @@ -1,4 +1,4 @@ -From 6898856f0630c183ad62856c27bd23bfdd3adf9d Mon Sep 17 00:00:00 2001 +From 7e50e7f3d459e5755adfd4d8901af1c86df71d14 Mon Sep 17 00:00:00 2001 From: Michael Forney <mforney@mforney.org> Date: Sun, 5 Jun 2016 18:24:16 -0700 Subject: [PATCH] Disable uidmap and gidmap support @@ -8,10 +8,10 @@ Subject: [PATCH] Disable uidmap and gidmap support 1 file changed, 16 insertions(+) diff --git a/sshfs.c b/sshfs.c -index 049fffb..7e2ff8e 100644 +index 05949ff..596a7c8 100644 --- a/sshfs.c +++ b/sshfs.c -@@ -246,10 +246,12 @@ struct sshfs { +@@ -247,10 +247,12 @@ struct sshfs { char *mountpoint; char *uid_file; char *gid_file; @@ -24,7 +24,7 @@ index 049fffb..7e2ff8e 100644 unsigned max_read; unsigned max_write; unsigned ssh_ver; -@@ -381,7 +383,9 @@ enum { +@@ -382,7 +384,9 @@ enum { enum { IDMAP_NONE, IDMAP_USER, @@ -34,7 +34,7 @@ index 049fffb..7e2ff8e 100644 }; enum { -@@ -402,7 +406,9 @@ static struct fuse_opt sshfs_opts[] = { +@@ -403,7 +407,9 @@ static struct fuse_opt sshfs_opts[] = { SSHFS_OPT("workaround=%s", workarounds, 0), SSHFS_OPT("idmap=none", idmap, IDMAP_NONE), SSHFS_OPT("idmap=user", idmap, IDMAP_USER), @@ -44,7 +44,7 @@ index 049fffb..7e2ff8e 100644 SSHFS_OPT("uidfile=%s", uid_file, 0), SSHFS_OPT("gidfile=%s", gid_file, 0), SSHFS_OPT("nomap=ignore", nomap, NOMAP_IGNORE), -@@ -543,6 +549,7 @@ static int list_empty(const struct list_head *head) +@@ -546,6 +552,7 @@ static int list_empty(const struct list_head *head) return head->next == head; } @@ -52,7 +52,7 @@ index 049fffb..7e2ff8e 100644 /* given a pointer to the uid/gid, and the mapping table, remap the * uid/gid, if necessary */ static inline int translate_id(uint32_t *id, GHashTable *map) -@@ -560,6 +567,7 @@ static inline int translate_id(uint32_t *id, GHashTable *map) +@@ -563,6 +570,7 @@ static inline int translate_id(uint32_t *id, GHashTable *map) abort(); } } @@ -60,7 +60,7 @@ index 049fffb..7e2ff8e 100644 static inline void buf_init(struct buffer *buf, size_t size) { -@@ -807,12 +815,14 @@ static int buf_get_attrs(struct buffer *buf, struct stat *stbuf, int *flagsp) +@@ -810,12 +818,14 @@ static int buf_get_attrs(struct buffer *buf, struct stat *stbuf, int *flagsp) if (sshfs.remote_uid_detected && uid == sshfs.remote_uid) uid = sshfs.local_uid; #endif /* __APPLE__ */ @@ -75,7 +75,7 @@ index 049fffb..7e2ff8e 100644 memset(stbuf, 0, sizeof(struct stat)); stbuf->st_mode = mode; -@@ -2469,12 +2479,14 @@ static int sshfs_chown(const char *path, uid_t uid, gid_t gid, +@@ -2474,12 +2484,14 @@ static int sshfs_chown(const char *path, uid_t uid, gid_t gid, if (sshfs.remote_uid_detected && uid == sshfs.local_uid) uid = sshfs.remote_uid; #endif /* __APPLE__ */ @@ -90,7 +90,7 @@ index 049fffb..7e2ff8e 100644 buf_init(&buf, 0); if (sf == NULL) -@@ -3696,6 +3708,7 @@ static int ssh_connect(void) +@@ -3702,6 +3714,7 @@ static int ssh_connect(void) return 0; } @@ -98,7 +98,7 @@ index 049fffb..7e2ff8e 100644 /* number of ':' separated fields in a passwd/group file that we care * about */ #define IDMAP_FIELDS 3 -@@ -3870,6 +3883,7 @@ static inline void load_gid_map(void) +@@ -3876,6 +3889,7 @@ static inline void load_gid_map(void) { read_id_map(sshfs.gid_file, &groupname_to_gid, "gid", &sshfs.gid_map, &sshfs.r_gid_map); } @@ -106,7 +106,7 @@ index 049fffb..7e2ff8e 100644 #ifdef __APPLE__ int main(int argc, char *argv[], __unused char *envp[], char **exec_path) -@@ -3958,6 +3972,7 @@ int main(int argc, char *argv[]) +@@ -3965,6 +3979,7 @@ int main(int argc, char *argv[]) if (sshfs.idmap == IDMAP_USER) sshfs.detect_uid = 1; @@ -114,7 +114,7 @@ index 049fffb..7e2ff8e 100644 else if (sshfs.idmap == IDMAP_FILE) { sshfs.uid_map = NULL; sshfs.gid_map = NULL; -@@ -3972,6 +3987,7 @@ int main(int argc, char *argv[]) +@@ -3979,6 +3994,7 @@ int main(int argc, char *argv[]) if (sshfs.gid_file) load_gid_map(); } @@ -123,5 +123,5 @@ index 049fffb..7e2ff8e 100644 free(sshfs.gid_file); -- -2.14.3 +2.17.0 |
