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{
281281char path [MAXPGPATH ];
282282FILE * fp ;
283+ #ifndef __CYGWIN__
283284struct stat stat_buf ;
285+ #endif
284286
285287if (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+
299307if (stat (checkdir ,& stat_buf )== -1 )
300308{
301309if (errno == ENOENT )
@@ -309,6 +317,8 @@ checkDataDir(const char *checkdir)
309317elog (FATAL ,"data directory %s has group or world access; permissions should be u=rwx (0700)" ,
310318checkdir );
311319
320+ #endif /* !__CYGWIN__ */
321+
312322/* Look for PG_VERSION before looking for pg_control */
313323ValidatePgVersion (checkdir );
314324