aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Kelly <mike@pair.com>2011-12-20 10:27:55 -0500
committerMiklos Szeredi <mszeredi@suse.cz>2011-12-21 10:05:08 +0100
commit75bfa9a6c058124a650013205ef2c3e7d79aa718 (patch)
treee55ef07c151bb7d811064652723d7aadf020f3a5
parente8e26c0bc10213ab99d437992e8037093d6b6c0f (diff)
downloadsshfs-75bfa9a6c058124a650013205ef2c3e7d79aa718.tar
sshfs-75bfa9a6c058124a650013205ef2c3e7d79aa718.tar.gz
sshfs-75bfa9a6c058124a650013205ef2c3e7d79aa718.tar.bz2
sshfs-75bfa9a6c058124a650013205ef2c3e7d79aa718.zip
skip blank lines
-rw-r--r--sshfs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sshfs.c b/sshfs.c
index 2ba4659..ef2208d 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -3556,6 +3556,10 @@ static void read_id_map(char *file, uint32_t *(*map_fn)(char *),
uint32_t remote_id;
char *name;
+ /* skip blank lines */
+ if (line[0] == '\n' || line[0] == '\0')
+ continue;
+
parse_idmap_line(line, file, lineno, &remote_id, &name, feof(fp));
uint32_t *local_id = map_fn(name);