diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | opts.c | 8 | ||||
-rw-r--r-- | sshfs.c | 2 |
3 files changed, 8 insertions, 4 deletions
@@ -2,6 +2,8 @@ * Replace EPROTO with the more portable EIO + * Fix bug in option parsing. Reported by Csaba Henk + 2005-10-29 Miklos Szeredi <miklos@szeredi.hu> * Use FUSE version 25 if available @@ -59,11 +59,13 @@ static int process_option_group(char *arg, struct opt opts[], if (comma) arg = comma + 1; } - if (!remove_one && prevcomma) - *prevcomma = ','; + if (!remove_one) { + if (prevcomma) + *prevcomma = ','; + prevcomma = comma; + } if (!comma) break; - prevcomma = comma; } return remove; } @@ -1465,7 +1465,7 @@ static int sshfs_open(const char *path, struct fuse_file_info *fi) return sshfs_open_common(path, 0, fi); } -static struct sshfs_file *get_sshfs_file(struct fuse_file_info *fi) +static inline struct sshfs_file *get_sshfs_file(struct fuse_file_info *fi) { return (struct sshfs_file *) (uintptr_t) fi->fh; } |