Fix error message for bad user.

SF Patch #126 (Thanks Maxim).
This commit is contained in:
Justin Maggard 2015-07-30 16:40:59 -07:00
parent e7ec55a2ad
commit 98fbb5b98b

View File

@ -722,7 +722,8 @@ init(int argc, char **argv)
/* Symbolic username given, not UID. */
struct passwd *entry = getpwnam(ary_options[i].value);
if (!entry)
DPRINTF(E_FATAL, L_GENERAL, "Bad user '%s'.\n", argv[i]);
DPRINTF(E_FATAL, L_GENERAL, "Bad user '%s'.\n",
ary_options[i].value);
uid = entry->pw_uid;
}
break;