1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-23 03:21:12 +03:00

Post-PG 10 beta1 pgindent run

perltidy run not included.
This commit is contained in:
Bruce Momjian
2017-05-17 16:31:56 -04:00
parent 8a94332478
commit a6fd7b7a5f
310 changed files with 3338 additions and 3171 deletions

View File

@ -50,7 +50,7 @@ get_role_password(const char *role, char **logdetail)
{
*logdetail = psprintf(_("Role \"%s\" does not exist."),
role);
return NULL; /* no such user */
return NULL; /* no such user */
}
datum = SysCacheGetAttr(AUTHNAME, roleTup,
@ -60,7 +60,7 @@ get_role_password(const char *role, char **logdetail)
ReleaseSysCache(roleTup);
*logdetail = psprintf(_("User \"%s\" has no password assigned."),
role);
return NULL; /* user has no password */
return NULL; /* user has no password */
}
shadow_pass = TextDatumGetCString(datum);
@ -76,7 +76,7 @@ get_role_password(const char *role, char **logdetail)
*logdetail = psprintf(_("User \"%s\" has an empty password."),
role);
pfree(shadow_pass);
return NULL; /* empty password */
return NULL; /* empty password */
}
/*
@ -122,8 +122,8 @@ encrypt_password(PasswordType target_type, const char *role,
if (guessed_type != PASSWORD_TYPE_PLAINTEXT)
{
/*
* Cannot convert an already-encrypted password from one
* format to another, so return it as it is.
* Cannot convert an already-encrypted password from one format to
* another, so return it as it is.
*/
return pstrdup(password);
}
@ -274,6 +274,7 @@ plain_crypt_verify(const char *role, const char *shadow_pass,
break;
case PASSWORD_TYPE_PLAINTEXT:
/*
* We never store passwords in plaintext, so this shouldn't
* happen.