diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2017-06-27 23:19:55 +0200 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2017-08-24 09:12:18 +0100 |
commit | c87d9b4b2be7bc03afe9c149bc6ad45406b4124c (patch) | |
tree | 5a40ee3b05683955e1dfc375737880c86e25a0d6 | |
parent | f329410d736916385a74dd22cbf5268db9b3c463 (diff) | |
download | busybox-w32-c87d9b4b2be7bc03afe9c149bc6ad45406b4124c.tar.gz busybox-w32-c87d9b4b2be7bc03afe9c149bc6ad45406b4124c.tar.bz2 busybox-w32-c87d9b4b2be7bc03afe9c149bc6ad45406b4124c.zip |
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 <johannes.schindelin@gmx.de>
Signed-off-by: Ron Yorston <rmy@pobox.com>
-rw-r--r-- | libbb/mode_string.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ | |||
25 | #endif | 25 | #endif |
26 | 26 | ||
27 | #if ( S_IFSOCK!= 0140000 ) || ( S_IFLNK != 0120000 ) \ | 27 | #if ( S_IFSOCK!= 0140000 ) || ( S_IFLNK != 0120000 ) \ |
28 | || ( S_IFREG != 0100000 ) || ( S_IFBLK != 0060000 ) \ | 28 | || ( S_IFREG != 0100000 ) || ( S_IFBLK != 0060000 && S_IFBLK != 0030000 ) \ |
29 | || ( S_IFDIR != 0040000 ) || ( S_IFCHR != 0020000 ) \ | 29 | || ( S_IFDIR != 0040000 ) || ( S_IFCHR != 0020000 ) \ |
30 | || ( S_IFIFO != 0010000 ) | 30 | || ( S_IFIFO != 0010000 ) |
31 | #warning mode type bitflag value assumption(s) violated! falling back to larger version | 31 | #warning mode type bitflag value assumption(s) violated! falling back to larger version |