bacula/bacula-ftbfs-f_type.patch
Petr Šabata 29d1ad8296 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/bacula#cac642c7f70b8ea04d1ec3d0abcf0afd9bb68e36
2020-10-14 22:10:49 +02:00

26 lines
812 B
Diff

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