[Box Backup-commit] COMMIT r2011 - box/trunk/infrastructure/m4
boxbackup-dev@fluffy.co.uk
boxbackup-dev@fluffy.co.uk
Tue, 18 Dec 2007 00:15:14 +0000 (UTC)
Author: chris
Date: 2007-12-18 00:15:13 +0000 (Tue, 18 Dec 2007)
New Revision: 2011
Modified:
box/trunk/infrastructure/m4/ax_check_dirent_d_type.m4
Log:
Stricter check for dirent.d_type validity (possible problems with
large file support resulting in reading the wrong part of the structure
on Slackware?)
Modified: box/trunk/infrastructure/m4/ax_check_dirent_d_type.m4
===================================================================
--- box/trunk/infrastructure/m4/ax_check_dirent_d_type.m4 2007-12-16 23:52:05 UTC (rev 2010)
+++ box/trunk/infrastructure/m4/ax_check_dirent_d_type.m4 2007-12-18 00:15:13 UTC (rev 2011)
@@ -24,7 +24,7 @@
DIR* dir = opendir(".");
struct dirent* res = NULL;
if(dir) res = readdir(dir);
- return res ? (res->d_type==DT_UNKNOWN) : 1;
+ return res ? (res->d_type != DT_FILE && res->d_type != DT_DIR) : 1;
]])],
[have_valid_dirent_d_type=yes], [have_valid_dirent_d_type=no]
)])