From 2e146b84eb15a1051b71ebbe36625625b00ccfef Mon Sep 17 00:00:00 2001 From: Yersa Nordman Date: Sun, 17 Mar 2024 23:20:29 +0100 Subject: [PATCH] Fix finfo flag tracking during palloc_init --- src/palloc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/palloc.c b/src/palloc.c index 07b16f5..649b05d 100644 --- a/src/palloc.c +++ b/src/palloc.c @@ -294,7 +294,8 @@ PALLOC_RESPONSE palloc_init(PALLOC_FD fd, PALLOC_FLAGS flags) { } // Build & write new header - PALLOC_FLAGS nflags = PALLOC_HTOBE_FLAGS(flags & (~PALLOC_SYNC)); + finfo->flags = flags; + PALLOC_FLAGS nflags = PALLOC_HTOBE_FLAGS(finfo->flags & (~PALLOC_SYNC)); memcpy(hdr, expected_header, expected_header_size); memcpy(hdr + expected_header_size, &nflags, sizeof(PALLOC_FLAGS)); seek_os(fd, 0, SEEK_SET);