From 03f6656af67e93063ff0954d972105a9b24ff4f8 Mon Sep 17 00:00:00 2001 From: axel Date: Tue, 1 Aug 2006 10:24:11 +1000 Subject: [PATCH] Use S_IS* macros instead of S_IF*, which are non-posix darcs-hash:20060801002411-ac50b-e5afcbfe4adfc54333c982b43309091c1cbcc1c9.gz --- builtin_set.c | 2 +- wildcard.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/builtin_set.c b/builtin_set.c index 15f009efd..882f24e12 100644 --- a/builtin_set.c +++ b/builtin_set.c @@ -81,7 +81,7 @@ static int my_env_set( const wchar_t *key, array_list_t *val, int scope ) show_perror = 1; } - if( !( S_IFDIR & buff.st_mode ) ) + if( !( S_ISDIR(buff.st_mode) ) ) { error = 1; diff --git a/wildcard.c b/wildcard.c index 982839930..340ba7b32 100644 --- a/wildcard.c +++ b/wildcard.c @@ -395,7 +395,7 @@ static int test_flags( wchar_t *filename, return 0; } - if( S_IFDIR & buf.st_mode ) + if( S_ISDIR( buf.st_mode ) ) return 1; if( flags & EXECUTABLES_ONLY ) @@ -684,7 +684,7 @@ int wildcard_expand( const wchar_t *wc, if( !stat_res ) { - if( buf.st_mode & S_IFDIR ) + if( S_ISDIR(buf.st_mode) ) { new_len = wcslen( new_dir ); new_dir[new_len] = L'/';