mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 00:46: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 */
|
/* set default user for -R/--remote-user */
|
||||||
{
|
{
|
||||||
struct passwd *pw = NULL;
|
struct passwd *pw = getpwuid(geteuid());
|
||||||
|
|
||||||
pw = getpwuid(geteuid());
|
|
||||||
if (pw == NULL)
|
if (pw == NULL)
|
||||||
{
|
{
|
||||||
fprintf(stderr, _("could not get current user name: %s\n"), strerror(errno));
|
fprintf(stderr, _("could not get current user name: %s\n"), strerror(errno));
|
||||||
|
|||||||
Reference in New Issue
Block a user