From b8f2d06ed7695005b0f4a3376ce070cfc313e65b Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 11 Feb 2013 16:53:11 +0100 Subject: [PATCH] libmount: tags does not start with '/' References: https://bugzilla.redhat.com/show_bug.cgi?id=909866 Signed-off-by: Karel Zak --- libmount/src/fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmount/src/fs.c b/libmount/src/fs.c index 232a2f6188..2df8ab1f34 100644 --- a/libmount/src/fs.c +++ b/libmount/src/fs.c @@ -311,7 +311,7 @@ int __mnt_fs_set_source_ptr(struct libmnt_fs *fs, char *source) assert(fs); - if (source && strchr(source, '=')) { + if (source && *source != '/' && strchr(source, '=')) { if (blkid_parse_tag_string(source, &t, &v) != 0) return -1; } -- 2.47.3