summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-03-02 20:27:12 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:35:07 -0700
commit5ec4899acf4338fec32f8f8c218802a406319971 (patch)
tree13891ba4016b7a4e8ce630715056028680b46da2
parent2ef3bc2b7094876488c9ac30f64f135b6f88350a (diff)
[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 :)
-rw-r--r--udev-add.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev-add.c b/udev-add.c
index c13cce53d4..ed0286d1fc 100644
--- a/udev-add.c
+++ b/udev-add.c
@@ -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;
}