From 7a8979367e4ab1a6412fef9a027b7d38621d87b7 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Wed, 23 Nov 2005 22:33:07 +0000 Subject: Bug #5003 Patch #3763 Xorg code misuses S_IF* macros --- src/Intrinsic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Intrinsic.c b/src/Intrinsic.c index 3e6af47..482df0a 100644 --- a/src/Intrinsic.c +++ b/src/Intrinsic.c @@ -950,7 +950,7 @@ static Boolean TestFile( #ifndef X_NOT_POSIX S_ISDIR(status.st_mode) == 0); /* not a directory */ #else - (status.st_mode & S_IFDIR) == 0); /* not a directory */ + (status.st_mode & S_IFMT) != S_IFDIR); /* not a directory */ #endif /* X_NOT_POSIX else */ #if defined(WIN32) XtStackFree ((XtPointer)bufp, buf); -- cgit v1.2.3