diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2005-11-16 18:42:35 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2005-11-16 18:42:35 +0000 |
commit | c3b0185deb610736420f43b447a0a488d83ee0ae (patch) | |
tree | 5998e4ab270ff6af60ccef828c06f8d0b01adbca | |
parent | 7e97377d5260517404bba9dc1e3281861535d950 (diff) | |
download | sshfs-c3b0185deb610736420f43b447a0a488d83ee0ae.tar sshfs-c3b0185deb610736420f43b447a0a488d83ee0ae.tar.gz sshfs-c3b0185deb610736420f43b447a0a488d83ee0ae.tar.bz2 sshfs-c3b0185deb610736420f43b447a0a488d83ee0ae.zip |
fix
-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; } |