]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lib/ismounted: make it more compatible with lsblk output
authorKarel Zak <kzak@redhat.com>
Fri, 1 Aug 2014 10:09:33 +0000 (12:09 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 1 Aug 2014 10:09:33 +0000 (12:09 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/ismounted.c

index 8a882b27e665144b378761fa5c806222b04a34cd..135ac29d6cf598ab834fc533f5720568cf623177 100644 (file)
@@ -318,7 +318,7 @@ int check_mount_point(const char *device, int *mount_flags,
        if (is_swap_device(device)) {
                *mount_flags = MF_MOUNTED | MF_SWAP;
                if (mtpt && mtlen)
-                       strncpy(mtpt, "<swap>", mtlen);
+                       strncpy(mtpt, "[SWAP]", mtlen);
        } else {
 #ifdef HAVE_MNTENT_H
                retval = check_mntent(device, mount_flags, mtpt, mtlen);