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

Commit0e9e888

Browse files
committed
Suppress data directory access-permissions check when __CYGWIN__,
per recent pghackers discussions. Improving this should be a TODOfor 7.3.
1 parent388008c commit0e9e888

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

‎src/backend/postmaster/postmaster.c

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
*
3939
* IDENTIFICATION
40-
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.261 2001/11/12 05:43:24 tgl Exp $
40+
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.262 2001/12/04 16:17:48 tgl Exp $
4141
*
4242
* NOTES
4343
*
@@ -280,7 +280,9 @@ checkDataDir(const char *checkdir)
280280
{
281281
charpath[MAXPGPATH];
282282
FILE*fp;
283+
#ifndef__CYGWIN__
283284
structstatstat_buf;
285+
#endif
284286

285287
if (checkdir==NULL)
286288
{
@@ -295,7 +297,13 @@ checkDataDir(const char *checkdir)
295297

296298
/*
297299
* Check if the directory has group or world access. If so, reject.
300+
*
301+
* XXX temporarily suppress check when on Windows, because there may
302+
* not be proper support for Unix-y file permissions. Need to think
303+
* of a reasonable check to apply on Windows.
298304
*/
305+
#ifndef__CYGWIN__
306+
299307
if (stat(checkdir,&stat_buf)==-1)
300308
{
301309
if (errno==ENOENT)
@@ -309,6 +317,8 @@ checkDataDir(const char *checkdir)
309317
elog(FATAL,"data directory %s has group or world access; permissions should be u=rwx (0700)",
310318
checkdir);
311319

320+
#endif/* !__CYGWIN__ */
321+
312322
/* Look for PG_VERSION before looking for pg_control */
313323
ValidatePgVersion(checkdir);
314324

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp