Commit 7b9d4eaa authored by reggie@monster's avatar reggie@monster

fixed compile problem by replacing W_OK with F_OK

parent e6860572
...@@ -206,6 +206,7 @@ rburnett@bk-internal.mysql.com ...@@ -206,6 +206,7 @@ rburnett@bk-internal.mysql.com
rburnett@build.mysql.com rburnett@build.mysql.com
reggie@bob.(none) reggie@bob.(none)
reggie@mdk10.(none) reggie@mdk10.(none)
reggie@monster.
root@home.(none) root@home.(none)
root@mc04.(none) root@mc04.(none)
root@x3.internalnet root@x3.internalnet
......
...@@ -44,7 +44,7 @@ int my_access(const char *path, int amode) ...@@ -44,7 +44,7 @@ int my_access(const char *path, int amode)
result= GetFileAttributesEx(path, GetFileExInfoStandard, &fileinfo); result= GetFileAttributesEx(path, GetFileExInfoStandard, &fileinfo);
if (! result || if (! result ||
(fileinfo.dwFileAttributes & FILE_ATTRIBUTE_READONLY) && (amode & W_OK)) (fileinfo.dwFileAttributes & FILE_ATTRIBUTE_READONLY) && (amode & F_OK))
{ {
my_errno= errno= EACCES; my_errno= errno= EACCES;
return -1; return -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment