summaryrefslogtreecommitdiff
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
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
-rw-r--r--BitKeeper/etc/logging_ok1
-rw-r--r--mysys/my_access.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/BitKeeper/etc/logging_ok b/BitKeeper/etc/logging_ok
index aad4399302e..ce1e179789e 100644
--- a/BitKeeper/etc/logging_ok
+++ b/BitKeeper/etc/logging_ok
@@ -206,6 +206,7 @@ rburnett@bk-internal.mysql.com
rburnett@build.mysql.com
reggie@bob.(none)
reggie@mdk10.(none)
+reggie@monster.
root@home.(none)
root@mc04.(none)
root@x3.internalnet
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;