linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] bugfix for local user
@ 2004-03-02  2:11 Kay Sievers
  2004-03-02  2:59 ` Robert Love
  2004-03-02 20:27 ` Greg KH
  0 siblings, 2 replies; 3+ messages in thread
From: Kay Sievers @ 2004-03-02  2:11 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 194 bytes --]

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 :)

thanks,
Kay

[-- Attachment #2: 01-very-short-user-name.patch --]
[-- Type: text/plain, Size: 343 bytes --]

===== udev-add.c 1.56 vs edited =====
--- 1.56/udev-add.c	Tue Mar  2 02:05:20 2004
+++ edited/udev-add.c	Tue Mar  2 03:05:03 2004
@@ -158,7 +158,7 @@
 
 		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;
 		}

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-03-02 20:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-02  2:11 [PATCH] bugfix for local user Kay Sievers
2004-03-02  2:59 ` Robert Love
2004-03-02 20:27 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).