mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
Minor code simplification
This commit is contained in:
@@ -176,9 +176,8 @@ main(int argc, char **argv)
|
||||
|
||||
/* set default user for -R/--remote-user */
|
||||
{
|
||||
struct passwd *pw = NULL;
|
||||
struct passwd *pw = getpwuid(geteuid());
|
||||
|
||||
pw = getpwuid(geteuid());
|
||||
if (pw == NULL)
|
||||
{
|
||||
fprintf(stderr, _("could not get current user name: %s\n"), strerror(errno));
|
||||
|
||||
Reference in New Issue
Block a user