summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak2019-07-17 12:42:39 +0200
committerKarel Zak2019-07-17 12:42:39 +0200
commit1ace839781b73517790f714fbd9c9c48e2297148 (patch)
tree68556f85389bce5a6e366fbe99e8bf2045918427
parentlibblkid: do not interpret NTFS as MBR (diff)
downloadkernel-qcow2-util-linux-1ace839781b73517790f714fbd9c9c48e2297148.tar.gz
kernel-qcow2-util-linux-1ace839781b73517790f714fbd9c9c48e2297148.tar.xz
kernel-qcow2-util-linux-1ace839781b73517790f714fbd9c9c48e2297148.zip
libfdisk: don't use NTFS as MBR
Same as 7c643ed2855058657798d9e8e80701023de14a08. Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r--libfdisk/src/dos.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libfdisk/src/dos.c b/libfdisk/src/dos.c
index bd964db15..fc5bcc651 100644
--- a/libfdisk/src/dos.c
+++ b/libfdisk/src/dos.c
@@ -815,7 +815,9 @@ static int dos_probe_label(struct fdisk_context *cxt)
return 0;
/* ignore disks with FAT */
- if (cxt->collision && strcmp(cxt->collision, "vfat") == 0)
+ if (cxt->collision &&
+ (strcmp(cxt->collision, "vfat") == 0 ||
+ strcmp(cxt->collision, "ntfs") == 0))
return 0;
dos_init(cxt);