From c87d9b4b2be7bc03afe9c149bc6ad45406b4124c Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Tue, 27 Jun 2017 23:19:55 +0200 Subject: mode_string: S_IFBLK differs between Windows and Unix It is a bit wrong to make that much of a hard-coded assumption, anyway. Maybe a better way would be to test whether the S_IF* constants are in a specific range. But then, it is probably not worth the time to investigate that. Signed-off-by: Johannes Schindelin Signed-off-by: Ron Yorston --- libbb/mode_string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbb/mode_string.c b/libbb/mode_string.c index 934eb6dc7..c387b42cb 100644 --- a/libbb/mode_string.c +++ b/libbb/mode_string.c @@ -25,7 +25,7 @@ #endif #if ( S_IFSOCK!= 0140000 ) || ( S_IFLNK != 0120000 ) \ - || ( S_IFREG != 0100000 ) || ( S_IFBLK != 0060000 ) \ + || ( S_IFREG != 0100000 ) || ( S_IFBLK != 0060000 && S_IFBLK != 0030000 ) \ || ( S_IFDIR != 0040000 ) || ( S_IFCHR != 0020000 ) \ || ( S_IFIFO != 0010000 ) #warning mode type bitflag value assumption(s) violated! falling back to larger version -- cgit v1.2.3-55-g6feb