File makedumpfile-open_dump_bitmap-non-cyclic.patch of Package makedumpfile

From: Martin Wilck <mwilck@suse.de>
Date: Wed, 10 Aug 2016 14:56:56 +0200
Subject: open_dump_bitmap: open bitmap file in non-cyclic case
References: bsc#992885

The logic of set_bitmap() requires that a bitmap fd exists in the
non-cyclic case.

Signed-off-by: Martin Wilck <mwilck@suse.de>
Acked-by: Petr Tesarik <ptesarik@suse.com>

---
 makedumpfile.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/makedumpfile.c
+++ b/makedumpfile.c
@@ -1365,7 +1365,7 @@ open_dump_bitmap(void)
 
 	/* Unnecessary to open */
 	if (!info->working_dir && !info->flag_reassemble && !info->flag_refiltering
-	    && !info->flag_sadump && !info->flag_mem_usage)
+	    && !info->flag_sadump && !info->flag_mem_usage && info->flag_cyclic)
 		return TRUE;
 
 	tmpname = getenv("TMPDIR");
openSUSE Build Service is sponsored by