diff options
author | Mike Kelly <mike@pair.com> | 2011-12-20 10:27:55 -0500 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2011-12-21 10:05:08 +0100 |
commit | 75bfa9a6c058124a650013205ef2c3e7d79aa718 (patch) | |
tree | e55ef07c151bb7d811064652723d7aadf020f3a5 | |
parent | e8e26c0bc10213ab99d437992e8037093d6b6c0f (diff) | |
download | sshfs-75bfa9a6c058124a650013205ef2c3e7d79aa718.tar sshfs-75bfa9a6c058124a650013205ef2c3e7d79aa718.tar.gz sshfs-75bfa9a6c058124a650013205ef2c3e7d79aa718.tar.bz2 sshfs-75bfa9a6c058124a650013205ef2c3e7d79aa718.zip |
skip blank lines
-rw-r--r-- | sshfs.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |