summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorunknown <reggie@monster.>2005-06-02 11:12:58 -0500
committerunknown <reggie@monster.>2005-06-02 11:12:58 -0500
commitdd3225b22bf8b478361ac795b9f067f4993fd384 (patch)
tree1f9888e94359699b4b38b638d173c5ecd28e9a54 /mysys
parent17678a7b885beb59fa808b7ace5cee4a0e21667d (diff)
downloadmariadb-git-dd3225b22bf8b478361ac795b9f067f4993fd384.tar.gz
fixed compile problem by replacing W_OK with F_OK
BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
Diffstat (limited to 'mysys')
-rw-r--r--mysys/my_access.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/my_access.c b/mysys/my_access.c
index 28210bdfc7d..89e90e16f18 100644
--- a/mysys/my_access.c
+++ b/mysys/my_access.c
@@ -44,7 +44,7 @@ int my_access(const char *path, int amode)
result= GetFileAttributesEx(path, GetFileExInfoStandard, &fileinfo);
if (! result ||
- (fileinfo.dwFileAttributes & FILE_ATTRIBUTE_READONLY) && (amode & W_OK))
+ (fileinfo.dwFileAttributes & FILE_ATTRIBUTE_READONLY) && (amode & F_OK))
{
my_errno= errno= EACCES;
return -1;