diff options
Diffstat (limited to 'libmount/src/tab_parse.c')
-rw-r--r-- | libmount/src/tab_parse.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmount/src/tab_parse.c b/libmount/src/tab_parse.c index 56da8ec47..a8b7b79d4 100644 --- a/libmount/src/tab_parse.c +++ b/libmount/src/tab_parse.c @@ -161,6 +161,8 @@ static int mnt_parse_mountinfo_line(struct libmnt_fs *fs, char *s) DBG(TAB, mnt_debug("mountinfo parse error: not found separator")); return -EINVAL; } + if (p > s + 1) + fs->opt_fields = strndup(s + 1, p - s - 1); s = p + 3; rc += sscanf(s, UL_SCNsA" " /* (8) FS type */ |