From: Karel Zak Date: Mon, 13 Apr 2015 11:41:10 +0000 (+0200) Subject: sfdisk: enable bootbits protection X-Git-Tag: v2.26.2~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=164ce49532c62efd098ed7414b7138d4e82ed18c;p=thirdparty%2Futil-linux.git sfdisk: enable bootbits protection Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1210428 Signed-off-by: Karel Zak --- diff --git a/disk-utils/sfdisk.c b/disk-utils/sfdisk.c index 38d741a7d7..874afab49b 100644 --- a/disk-utils/sfdisk.c +++ b/disk-utils/sfdisk.c @@ -190,6 +190,7 @@ static void sfdisk_init(struct sfdisk *sf) if (!sf->cxt) err(EXIT_FAILURE, _("failed to allocate libfdisk context")); fdisk_set_ask(sf->cxt, ask_callback, (void *) sf); + fdisk_enable_bootbits_protection(sf->cxt, 1); if (sf->label_nested) { struct fdisk_context *x = fdisk_new_nested_context(sf->cxt,