diff options
Diffstat (limited to 'pkg/sshfs/patch/0005-Use-standard-C-functions.patch')
| -rw-r--r-- | pkg/sshfs/patch/0005-Use-standard-C-functions.patch | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/pkg/sshfs/patch/0005-Use-standard-C-functions.patch b/pkg/sshfs/patch/0005-Use-standard-C-functions.patch index 470dab25..e2bd676a 100644 --- a/pkg/sshfs/patch/0005-Use-standard-C-functions.patch +++ b/pkg/sshfs/patch/0005-Use-standard-C-functions.patch @@ -1,17 +1,17 @@ -From 390b2fd5ff9cd01261b77974b8e8943d66d8ea8f Mon Sep 17 00:00:00 2001 +From 8a13c4133ba8343745cf1318e9c892a286b6596d Mon Sep 17 00:00:00 2001 From: Michael Forney <mforney@mforney.org> Date: Sun, 5 Jun 2016 17:42:29 -0700 Subject: [PATCH] Use standard C functions --- - sshfs.c | 91 +++++++++++++++++++++++++++++++++++++++-------------------------- + sshfs.c | 91 ++++++++++++++++++++++++++++++++++----------------------- 1 file changed, 55 insertions(+), 36 deletions(-) diff --git a/sshfs.c b/sshfs.c -index 5ec1ee3..4ad3bbc 100644 +index 1d7ae03..1ff00ae 100644 --- a/sshfs.c +++ b/sshfs.c -@@ -660,25 +660,25 @@ static inline void buf_add_path(struct buffer *buf, const char *path) +@@ -663,25 +663,25 @@ static inline void buf_add_path(struct buffer *buf, const char *path) if (sshfs.base_path[0]) { if (path[1]) { if (sshfs.base_path[strlen(sshfs.base_path)-1] != '/') { @@ -47,7 +47,7 @@ index 5ec1ee3..4ad3bbc 100644 } static int buf_check_get(struct buffer *buf, size_t len) -@@ -1263,7 +1263,7 @@ static void request_free(struct request *req) +@@ -1266,7 +1266,7 @@ static void request_free(struct request *req) { buf_free(&req->reply); sem_destroy(&req->ready); @@ -56,7 +56,7 @@ index 5ec1ee3..4ad3bbc 100644 } static int request_table_insert(struct request_table *reqtab, struct request *req) -@@ -1311,9 +1311,9 @@ static void chunk_free(struct read_chunk *chunk) +@@ -1314,9 +1314,9 @@ static void chunk_free(struct read_chunk *chunk) rreq = list_entry(chunk->reqs.prev, struct read_req, list); list_del(&rreq->list); buf_free(&rreq->data); @@ -68,7 +68,7 @@ index 5ec1ee3..4ad3bbc 100644 } static void chunk_put(struct read_chunk *chunk) -@@ -1864,8 +1864,10 @@ static int sftp_request_send(uint8_t type, struct iovec *iov, size_t count, +@@ -1867,8 +1867,10 @@ static int sftp_request_send(uint8_t type, struct iovec *iov, size_t count, struct request **reqp) { int err; @@ -80,7 +80,7 @@ index 5ec1ee3..4ad3bbc 100644 req->want_reply = want_reply; req->end_func = end_func; req->data = data; -@@ -2564,8 +2566,10 @@ static int sshfs_open_common(const char *path, mode_t mode, +@@ -2569,8 +2571,10 @@ static int sshfs_open_common(const char *path, mode_t mode, if (fi->flags & O_APPEND) pflags |= SSH_FXF_APPEND; @@ -93,7 +93,7 @@ index 5ec1ee3..4ad3bbc 100644 list_init(&sf->write_reqs); pthread_cond_init(&sf->write_finished, NULL); /* Assume random read after open */ -@@ -2609,7 +2613,7 @@ static int sshfs_open_common(const char *path, mode_t mode, +@@ -2614,7 +2618,7 @@ static int sshfs_open_common(const char *path, mode_t mode, } else { if (sshfs.dir_cache) cache_invalidate(path); @@ -102,7 +102,7 @@ index 5ec1ee3..4ad3bbc 100644 } buf_free(&buf); return err; -@@ -2676,7 +2680,7 @@ static void sshfs_file_put(struct sshfs_file *sf) +@@ -2681,7 +2685,7 @@ static void sshfs_file_put(struct sshfs_file *sf) { sf->refs--; if (!sf->refs) @@ -111,7 +111,7 @@ index 5ec1ee3..4ad3bbc 100644 } static void sshfs_file_get(struct sshfs_file *sf) -@@ -2746,9 +2750,11 @@ static void sshfs_read_begin(struct request *req) +@@ -2751,9 +2755,11 @@ static void sshfs_read_begin(struct request *req) static struct read_chunk *sshfs_send_read(struct sshfs_file *sf, size_t size, off_t offset) { @@ -124,7 +124,7 @@ index 5ec1ee3..4ad3bbc 100644 pthread_cond_init(&chunk->sio.finished, NULL); list_init(&chunk->reqs); chunk->size = size; -@@ -2762,7 +2768,9 @@ static struct read_chunk *sshfs_send_read(struct sshfs_file *sf, size_t size, +@@ -2767,7 +2773,9 @@ static struct read_chunk *sshfs_send_read(struct sshfs_file *sf, size_t size, struct read_req *rreq; size_t bsize = size < sshfs.max_read ? size : sshfs.max_read; @@ -135,7 +135,7 @@ index 5ec1ee3..4ad3bbc 100644 rreq->sio = &chunk->sio; rreq->size = bsize; buf_init(&rreq->data, 0); -@@ -2833,7 +2841,7 @@ static int wait_chunk(struct read_chunk *chunk, char *buf, size_t size) +@@ -2838,7 +2846,7 @@ static int wait_chunk(struct read_chunk *chunk, char *buf, size_t size) size -= rreq->res; list_del(&rreq->list); buf_free(&rreq->data); @@ -144,7 +144,7 @@ index 5ec1ee3..4ad3bbc 100644 } } -@@ -3451,9 +3459,10 @@ static int sshfs_opt_proc(void *data, const char *arg, int key, +@@ -3457,9 +3465,10 @@ static int sshfs_opt_proc(void *data, const char *arg, int key, switch (key) { case FUSE_OPT_KEY_OPT: if (is_ssh_opt(arg)) { @@ -157,7 +157,7 @@ index 5ec1ee3..4ad3bbc 100644 return 0; } /* Pass through */ -@@ -3478,9 +3487,10 @@ static int sshfs_opt_proc(void *data, const char *arg, int key, +@@ -3484,9 +3493,10 @@ static int sshfs_opt_proc(void *data, const char *arg, int key, case KEY_PORT: @@ -170,7 +170,7 @@ index 5ec1ee3..4ad3bbc 100644 return 0; case KEY_COMPRESS: -@@ -3488,9 +3498,10 @@ static int sshfs_opt_proc(void *data, const char *arg, int key, +@@ -3494,9 +3504,10 @@ static int sshfs_opt_proc(void *data, const char *arg, int key, return 0; case KEY_CONFIGFILE: @@ -183,7 +183,7 @@ index 5ec1ee3..4ad3bbc 100644 return 0; default: -@@ -3646,17 +3657,19 @@ static char *find_base_path(void) +@@ -3652,17 +3663,19 @@ static char *find_base_path(void) static char *fsname_escape_commas(char *fsnameold) { @@ -205,7 +205,7 @@ index 5ec1ee3..4ad3bbc 100644 return fsname; } -@@ -3989,15 +4002,20 @@ int main(int argc, char *argv[]) +@@ -3996,15 +4009,20 @@ int main(int argc, char *argv[]) else sshfs.max_outstanding_len = ~0; @@ -230,7 +230,7 @@ index 5ec1ee3..4ad3bbc 100644 ssh_add_arg(sshfs.host); if (sshfs.sftp_server) sftp_server = sshfs.sftp_server; -@@ -4024,10 +4042,11 @@ int main(int argc, char *argv[]) +@@ -4031,10 +4049,11 @@ int main(int argc, char *argv[]) sshfs.max_write = 65536; fsname = fsname_escape_commas(fsname); @@ -246,5 +246,5 @@ index 5ec1ee3..4ad3bbc 100644 if(sshfs.dir_cache) sshfs.op = cache_wrap(&sshfs_oper); -- -2.14.3 +2.17.0 |
