diff options
author | Marc G. Fournier <scrappy@hub.org> | 1998-02-25 13:09:49 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1998-02-25 13:09:49 +0000 |
commit | 780068f812a61e73b2474f7f025b28309a2f1840 (patch) | |
tree | 7d1db588478714e434ced675e55af8101f94f3fb /src/backend/commands/dbcommands.c | |
parent | d067f83b274adffb3415a8a41dd8bdc71bc87620 (diff) | |
download | postgresql-780068f812a61e73b2474f7f025b28309a2f1840.tar.gz postgresql-780068f812a61e73b2474f7f025b28309a2f1840.zip |
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/commands/dbcommands.c')
-rw-r--r-- | src/backend/commands/dbcommands.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/commands/dbcommands.c b/src/backend/commands/dbcommands.c index 2bebaba587e..9326b1a5493 100644 --- a/src/backend/commands/dbcommands.c +++ b/src/backend/commands/dbcommands.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.6 1998/01/31 04:38:19 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.7 1998/02/25 13:06:09 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -25,7 +25,7 @@ #include "utils/elog.h" #include "catalog/catname.h" #include "catalog/pg_proc.h" -#include "catalog/pg_user.h" +#include "catalog/pg_shadow.h" #include "catalog/pg_database.h" #include "utils/syscache.h" #include "commands/dbcommands.h" @@ -211,9 +211,9 @@ check_permissions(char *command, userName = GetPgUserName(); utup = SearchSysCacheTuple(USENAME, PointerGetDatum(userName), 0, 0, 0); - *userIdP = ((Form_pg_user) GETSTRUCT(utup))->usesysid; - use_super = ((Form_pg_user) GETSTRUCT(utup))->usesuper; - use_createdb = ((Form_pg_user) GETSTRUCT(utup))->usecreatedb; + *userIdP = ((Form_pg_shadow) GETSTRUCT(utup))->usesysid; + use_super = ((Form_pg_shadow) GETSTRUCT(utup))->usesuper; + use_createdb = ((Form_pg_shadow) GETSTRUCT(utup))->usecreatedb; /* Check to make sure user has permission to use createdb */ if (!use_createdb) |