Minor code simplification

This commit is contained in:
Ian Barwick
2020-03-03 15:27:45 +09:00
parent c6dfe53f03
commit 194b6d0948

View File

@@ -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));