5
5
*
6
6
* Copyright (c) 1994, Regents of the University of California
7
7
*
8
- * $Id: user.c,v 1.45 1999/12/16 17:24:13 momjian Exp $
8
+ * $Id: user.c,v 1.46 1999/12/20 01:11:37 tgl Exp $
9
9
*
10
10
*-------------------------------------------------------------------------
11
11
*/
@@ -37,7 +37,7 @@ static void CheckPgUserAclNotNull(void);
37
37
#define SQL_LENGTH 512
38
38
39
39
/*---------------------------------------------------------------------
40
- *UpdatePgPwdFile
40
+ *update_pg_pwd
41
41
*
42
42
* copy the modified contents of pg_shadow to a file used by the postmaster
43
43
* for user authentication. The file is stored as $PGDATA/pg_pwd.
@@ -48,12 +48,8 @@ static void CheckPgUserAclNotNull(void);
48
48
*---------------------------------------------------------------------
49
49
*/
50
50
51
- /* This is the old name. Now uses a lower case name to be able to call this
52
- from SQL. */
53
- #define UpdatePgPwdFile () update_pg_pwd()
54
-
55
51
void
56
- update_pg_pwd ()
52
+ update_pg_pwd (void )
57
53
{
58
54
char * filename ,
59
55
* tempname ;
@@ -242,7 +238,7 @@ DefineUser(CreateUserStmt *stmt, CommandDest dest)
242
238
* we can be sure no other backend will try to write the flat
243
239
* file at the same time.
244
240
*/
245
- UpdatePgPwdFile ();
241
+ update_pg_pwd ();
246
242
247
243
/*
248
244
* Now we can clean up.
@@ -391,7 +387,7 @@ AlterUser(AlterUserStmt *stmt, CommandDest dest)
391
387
* we can be sure no other backend will try to write the flat
392
388
* file at the same time.
393
389
*/
394
- UpdatePgPwdFile ();
390
+ update_pg_pwd ();
395
391
396
392
/*
397
393
* Now we can clean up.
@@ -524,7 +520,7 @@ RemoveUser(char *user, CommandDest dest)
524
520
* we can be sure no other backend will try to write the flat
525
521
* file at the same time.
526
522
*/
527
- UpdatePgPwdFile ();
523
+ update_pg_pwd ();
528
524
529
525
/*
530
526
* Now we can clean up.
@@ -758,7 +754,6 @@ AlterGroup(AlterGroupStmt *stmt, CommandDest dest)
758
754
*/
759
755
if (stmt -> action == 0 )/* change sysid */
760
756
{
761
- bool sysid_exists = false;
762
757
ScanKeyData keys [2 ];
763
758
HeapTuple tuple ;
764
759
HeapScanDesc scan ;