[PATCH] bugfix for local user

While moving the local user logic in it's own function I missed to
change the "secure" string macro. We copy only the first 3 bytes
of the username. Guess why I didn't notice it :)
This commit is contained in:
kay.sievers@vrfy.org
2005-04-26 21:35:07 -07:00
committed by Greg KH
parent 2ef3bc2b70
commit 5ec4899acf
+1 -1
View File
@@ -158,7 +158,7 @@ static void set_to_local_user(char *user)
if (u->ut_time > recent) {
recent = u->ut_time;
strfieldcpy(user, u->ut_user);
strnfieldcpy(user, u->ut_user, OWNER_SIZE);
dbg("local user is '%s'", user);
break;
}