summaryrefslogtreecommitdiff
path: root/src/backend/utils/init/miscinit.c
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1998-02-25 13:09:49 +0000
committerMarc G. Fournier <scrappy@hub.org>1998-02-25 13:09:49 +0000
commit780068f812a61e73b2474f7f025b28309a2f1840 (patch)
tree7d1db588478714e434ced675e55af8101f94f3fb /src/backend/utils/init/miscinit.c
parentd067f83b274adffb3415a8a41dd8bdc71bc87620 (diff)
downloadpostgresql-780068f812a61e73b2474f7f025b28309a2f1840.tar.gz
From: Jan Wieck <jwieck@debis.com>
seems that my last post didn't make it through. That's good since the diff itself didn't covered the renaming of pg_user.h to pg_shadow.h and it's new content. Here it's again. The complete regression test passwd with only some float diffs. createuser and destroyuser work. pg_shadow cannot be read by ordinary user.
Diffstat (limited to 'src/backend/utils/init/miscinit.c')
-rw-r--r--src/backend/utils/init/miscinit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/utils/init/miscinit.c b/src/backend/utils/init/miscinit.c
index 9bc13907dc..359adfb25b 100644
--- a/src/backend/utils/init/miscinit.c
+++ b/src/backend/utils/init/miscinit.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.10 1998/02/24 15:20:16 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.11 1998/02/25 13:08:09 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -32,7 +32,7 @@
#include "miscadmin.h" /* where the declarations go */
#include "catalog/catname.h"
-#include "catalog/pg_user.h"
+#include "catalog/pg_shadow.h"
#include "catalog/pg_proc.h"
#include "utils/syscache.h"
@@ -483,6 +483,6 @@ SetUserId()
if (!HeapTupleIsValid(userTup))
elog(FATAL, "SetUserId: user \"%s\" is not in \"%s\"",
userName,
- UserRelationName);
- UserId = (Oid) ((Form_pg_user) GETSTRUCT(userTup))->usesysid;
+ ShadowRelationName);
+ UserId = (Oid) ((Form_pg_shadow) GETSTRUCT(userTup))->usesysid;
}