Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1ecafd6

Browse files
committed
Buildfarm still unhappy, so I'll bet it's EACCES not EPERM.
1 parenta102090 commit1ecafd6

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

‎src/port/copydir.c

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*as a service.
1212
*
1313
* IDENTIFICATION
14-
* $PostgreSQL: pgsql/src/port/copydir.c,v 1.35 2010/03/0100:04:06 stark Exp $
14+
* $PostgreSQL: pgsql/src/port/copydir.c,v 1.36 2010/03/0114:54:00 tgl Exp $
1515
*
1616
*-------------------------------------------------------------------------
1717
*/
@@ -221,8 +221,9 @@ fsync_fname(char *fname, bool isdir)
221221
intfd;
222222
intreturncode;
223223

224-
/* Some OSs require directories to be opened read-only whereas
225-
* other systems don't allow us to fsync files opened read-only so
224+
/*
225+
* Some OSs require directories to be opened read-only whereas
226+
* other systems don't allow us to fsync files opened read-only; so
226227
* we need both cases here
227228
*/
228229
if (!isdir)
@@ -234,10 +235,11 @@ fsync_fname(char *fname, bool isdir)
234235
O_RDONLY |PG_BINARY,
235236
S_IRUSR |S_IWUSR);
236237

237-
/* Some OSs don't allow us to open directories at all
238-
* (Windows returns EPERM)
238+
/*
239+
* Some OSs don't allow us to open directories at all
240+
* (Windows returns EACCES)
239241
*/
240-
if (fd<0&&isdir&& (errno==EISDIR||errno==EPERM))
242+
if (fd<0&&isdir&& (errno==EISDIR||errno==EACCES))
241243
return;
242244

243245
elseif (fd<0)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp