diff options
author | Alan Coopersmith <Alan.Coopersmith@sun.com> | 2005-11-23 22:33:07 +0000 |
---|---|---|
committer | Alan Coopersmith <Alan.Coopersmith@sun.com> | 2005-11-23 22:33:07 +0000 |
commit | 7a8979367e4ab1a6412fef9a027b7d38621d87b7 (patch) | |
tree | 569952cc252caacbf00ec6e07e3047406bb587bc /src/Intrinsic.c | |
parent | 2533120c26185990d326fa14c92383f85239f3b7 (diff) |
Bug #5003 <https://bugs.freedesktop.org/show_bug.cgi?id=5003> Patch #3763XORG-6_8_99_903
<https://bugs.freedesktop.org/attachment.cgi?id=3763> Xorg code misuses
S_IF* macros
Diffstat (limited to 'src/Intrinsic.c')
-rw-r--r-- | src/Intrinsic.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |