* libmisc/failure.h, libmisc/failure.c, src/login.c: Added

username as first parameter of failtmp to avoid issues with
	non-null terminated ut_user, unavailability of ut_user, incomplete
	username (that should not happen currently).
This commit is contained in:
nekral-guest
2009-04-20 11:37:41 +00:00
parent f3bea401e9
commit a87e747049
3 changed files with 7 additions and 15 deletions

View File

@ -997,7 +997,7 @@ int main (int argc, char **argv)
strncpy (failent.ut_user, failent_user,
sizeof (failent.ut_user));
failent.ut_type = USER_PROCESS;
failtmp (&failent);
failtmp (failent_user, &failent);
}
retries--;