From 780068f812a61e73b2474f7f025b28309a2f1840 Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Wed, 25 Feb 1998 13:09:49 +0000 Subject: From: Jan Wieck 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. --- src/backend/utils/adt/acl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/backend/utils/adt/acl.c') diff --git a/src/backend/utils/adt/acl.c b/src/backend/utils/adt/acl.c index afc4075de04..62a977b3fe5 100644 --- a/src/backend/utils/adt/acl.c +++ b/src/backend/utils/adt/acl.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/acl.c,v 1.25 1998/02/24 03:31:47 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/acl.c,v 1.26 1998/02/25 13:07:43 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -19,7 +19,7 @@ #include "utils/acl.h" #include "utils/syscache.h" #include "catalog/catalog.h" -#include "catalog/pg_user.h" +#include "catalog/pg_shadow.h" #include "miscadmin.h" static char *getid(char *s, char *n); @@ -158,7 +158,7 @@ aclparse(char *s, AclItem *aip, unsigned *modechg) 0, 0, 0); if (!HeapTupleIsValid(htp)) elog(ERROR, "aclparse: non-existent user \"%s\"", name); - aip->ai_id = ((Form_pg_user) GETSTRUCT(htp))->usesysid; + aip->ai_id = ((Form_pg_shadow) GETSTRUCT(htp))->usesysid; break; case ACL_IDTYPE_GID: aip->ai_id = get_grosysid(name); @@ -285,7 +285,7 @@ aclitemout(AclItem *aip) pfree(tmp); } else - strncat(p, (char *) &((Form_pg_user) + strncat(p, (char *) &((Form_pg_shadow) GETSTRUCT(htp))->usename, sizeof(NameData)); break; -- cgit v1.2.3