diff options
Diffstat (limited to 'src/backend/commands/user.c')
-rw-r--r-- | src/backend/commands/user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/user.c b/src/backend/commands/user.c index 67d06b82c54..b0763bd7a5d 100644 --- a/src/backend/commands/user.c +++ b/src/backend/commands/user.c @@ -51,7 +51,7 @@ void UpdatePgPwdFile(char* sql) { */ filename = crypt_getpwdfilename(); tempname = (char*)malloc(strlen(filename) + 12); - sprintf(tempname, "%s.%d", filename, getpid()); + sprintf(tempname, "%s.%d", filename, MyProcPid); /* Copy the contents of pg_user to the pg_pwd ASCII file using a the SEPCHAR * character as the delimiter between fields. Then rename the file to its |