mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
fixed compile problem by replacing W_OK with F_OK
BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
This commit is contained in:
parent
17678a7b88
commit
dd3225b22b
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue