]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: tags does not start with '/'
authorKarel Zak <kzak@redhat.com>
Mon, 11 Feb 2013 15:53:11 +0000 (16:53 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 11 Feb 2013 15:53:11 +0000 (16:53 +0100)
References: https://bugzilla.redhat.com/show_bug.cgi?id=909866
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/fs.c

index 232a2f61887556d5aaa4e48e6de683369f13e02f..2df8ab1f3444e3ee2d3a5080316d55d17a9ca144 100644 (file)
@@ -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;
        }