diff options
-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); |