aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2005-11-16 18:42:35 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2005-11-16 18:42:35 +0000
commitc3b0185deb610736420f43b447a0a488d83ee0ae (patch)
tree5998e4ab270ff6af60ccef828c06f8d0b01adbca
parent7e97377d5260517404bba9dc1e3281861535d950 (diff)
downloadsshfs-c3b0185deb610736420f43b447a0a488d83ee0ae.tar
sshfs-c3b0185deb610736420f43b447a0a488d83ee0ae.tar.gz
sshfs-c3b0185deb610736420f43b447a0a488d83ee0ae.tar.bz2
sshfs-c3b0185deb610736420f43b447a0a488d83ee0ae.zip
fix
-rw-r--r--ChangeLog2
-rw-r--r--opts.c8
-rw-r--r--sshfs.c2
3 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index a8c3f01..892d55e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/opts.c b/opts.c
index 4a70a03..1ee1038 100644
--- a/opts.c
+++ b/opts.c
@@ -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;
}
diff --git a/sshfs.c b/sshfs.c
index 7c1f3c2..8c99fc1 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -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;
}