From: Karel Zak Date: Mon, 11 Feb 2013 15:53:11 +0000 (+0100) Subject: libmount: tags does not start with '/' X-Git-Tag: v2.23-rc1~235 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b8f2d06ed7695005b0f4a3376ce070cfc313e65b;p=thirdparty%2Futil-linux.git libmount: tags does not start with '/' References: https://bugzilla.redhat.com/show_bug.cgi?id=909866 Signed-off-by: Karel Zak --- 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; }