Skip to content

Commit 10b511c

Browse files
committed
[PBCKP-245] fix EACCES usage
I can't find where EACCESS is used in postgres. Nor I can find where it is defined in Windows. It is quite strange it worked before, I can't explain it.
1 parent 18d4bb9 commit 10b511c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ remove_file_or_dir(const char* path)
156156
{
157157
int rc = remove(path);
158158

159-
if (rc < 0 && errno == EACCESS)
159+
if (rc < 0 && errno == EACCES)
160160
rc = rmdir(path);
161161
return rc;
162162
}

0 commit comments

Comments
 (0)