From be1a5180596aa3a413e9c8047d0d25f4704756ef Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 5 Aug 2010 12:35:54 +0200 Subject: libmount: correctly use "none" values Signed-off-by: Karel Zak --- shlibs/mount/src/tab_parse.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'shlibs/mount/src/tab_parse.c') diff --git a/shlibs/mount/src/tab_parse.c b/shlibs/mount/src/tab_parse.c index 4ab39fbd1..6f8308e50 100644 --- a/shlibs/mount/src/tab_parse.c +++ b/shlibs/mount/src/tab_parse.c @@ -206,7 +206,10 @@ static int mnt_parse_mountinfo_line(mnt_fs *fs, char *s) fs->fs_optstr = next_word(&s); if (!fs->fs_optstr) return 1; - + if (!strcmp(fs->fs_optstr, "none")) { + free(fs->fs_optstr); + fs->fs_optstr = NULL; + } return 0; } -- cgit v1.2.3-55-g7522