Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 210938 | Differences between
and this patch

Collapse All | Expand All

(-)postgresql-8.0.15.orig/src/backend/libpq/be-secure.c (-2 / +2 lines)
Lines 737-744 Link Here
737
		 * data directory permission check in postmaster.c)
737
		 * data directory permission check in postmaster.c)
738
		 */
738
		 */
739
#if !defined(WIN32) && !defined(__CYGWIN__)
739
#if !defined(WIN32) && !defined(__CYGWIN__)
740
		if (!S_ISREG(buf.st_mode) || (buf.st_mode & (S_IRWXG | S_IRWXO)) ||
740
		if (!S_ISREG(buf.st_mode) || (buf.st_mode & (S_IWGRP | S_IRWXO)) ||
741
			buf.st_uid != geteuid())
741
			(buf.st_uid != geteuid()) && buf.st_uid != 0)
742
			ereport(FATAL,
742
			ereport(FATAL,
743
					(errcode(ERRCODE_CONFIG_FILE_ERROR),
743
					(errcode(ERRCODE_CONFIG_FILE_ERROR),
744
				  errmsg("unsafe permissions on private key file \"%s\"",
744
				  errmsg("unsafe permissions on private key file \"%s\"",

Return to bug 210938