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

Commit7363282

Browse files
committed
add EPERM to the list of return codes to expect from opening directories based on Vista results
1 parent936c4af commit7363282

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎src/port/copydir.c

Lines changed: 5 additions & 3 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.34 2010/02/28 21:05:30 stark Exp $
14+
* $PostgreSQL: pgsql/src/port/copydir.c,v 1.35 2010/03/01 00:04:06 stark Exp $
1515
*
1616
*-------------------------------------------------------------------------
1717
*/
@@ -234,8 +234,10 @@ fsync_fname(char *fname, bool isdir)
234234
O_RDONLY |PG_BINARY,
235235
S_IRUSR |S_IWUSR);
236236

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

241243
elseif (fd<0)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp