fixed compile problem by replacing W_OK with F_OK
This commit is contained in:
parent
e686057259
commit
7b9d4eaa92
@ -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)
|
|||||||
|
|
||||||
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user