bacula/bacula-ftbfs-f_type.patch

26 lines
812 B
Diff
Raw Normal View History

From 7cdb9950acdc87e66364d3e02ad53bd078c01218 Mon Sep 17 00:00:00 2001
From: Vaclav Dolezal <vdolezal@redhat.com>
Date: Mon, 10 Feb 2020 11:07:50 +0100
Subject: [PATCH] Fix FTBFS (#1799185)
---
src/findlib/fstype.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/findlib/fstype.c b/src/findlib/fstype.c
index 107f7a877..3a9a5ed59 100644
--- a/src/findlib/fstype.c
+++ b/src/findlib/fstype.c
@@ -188,7 +188,7 @@ bool fstype(FF_PKT *ff_pkt, char *fs, int fslen)
*
* $ grep -r SUPER_MAGIC /usr/include/linux
*/
- switch (st.f_type) {
+ switch ((unsigned int) st.f_type) {
/* Known good values */
/* ext2, ext3, and ext4 have the same code */
case 0xef53: fstype = "ext2"; break; /* EXT2_SUPER_MAGIC */
--
2.20.1