summaryrefslogtreecommitdiff
path: root/sysutils/file/patches/patch-src_fsmagic.c
blob: 2fb85be2ed2fd340dab5970064902e827a803d13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-src_fsmagic.c,v 1.2 2019/03/16 10:50:31 leot Exp $

Explicitly convert mode_t to unsigned int for formatted output

--- src/fsmagic.c.orig	2014-12-04 15:56:46.000000000 +0000
+++ src/fsmagic.c
@@ -394,7 +394,7 @@ file_fsmagic(struct magic_set *ms, const
 		break;
 
 	default:
-		file_error(ms, 0, "invalid mode 0%o", sb->st_mode);
+		file_error(ms, 0, "invalid mode 0%o", (unsigned int)sb->st_mode);
 		return -1;
 		/*NOTREACHED*/
 	}