|
5 | 5 | *
|
6 | 6 | * Copyright (c) 1994, Regents of the University of California
|
7 | 7 | *
|
8 |
| - * $Id: user.c,v 1.42 1999/12/14 00:08:13 momjian Exp $ |
| 8 | + * $Id: user.c,v 1.43 1999/12/14 00:12:06 momjian Exp $ |
9 | 9 | *
|
10 | 10 | *-------------------------------------------------------------------------
|
11 | 11 | */
|
@@ -44,12 +44,20 @@ static void CheckPgUserAclNotNull(void);
|
44 | 44 | *---------------------------------------------------------------------
|
45 | 45 | */
|
46 | 46 |
|
47 |
| -/* This is the old name. Now uses a lower case name to be able to call this |
48 |
| - from SQL. */ |
49 |
| -#defineUpdatePgPwdFile() update_pg_pwd() |
| 47 | +staticvoidUpdatePgPwdFile(void); |
50 | 48 |
|
51 |
| -void |
52 |
| -update_pg_pwd() |
| 49 | +/* This is a wrapper, so the below function can be called from a trigger |
| 50 | + (used to update pg_pwd from pg_shadow) */ |
| 51 | +HeapTupleupdate_pg_pwd() |
| 52 | +{ |
| 53 | +UpdatePgPwdFile(); |
| 54 | +returnNULL; |
| 55 | +} |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | +staticvoid |
| 60 | +UpdatePgPwdFile(void) |
53 | 61 | {
|
54 | 62 | char*filename,
|
55 | 63 | *tempname;
|
|