aboutsummaryrefslogtreecommitdiff
path: root/sshfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshfs.c')
-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);