From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Tue, 02 Mar 2004 02:11:37 +0000 Subject: [PATCH] bugfix for local user Message-Id: <20040302021137.GA6885@vrfy.org> MIME-Version: 1 Content-Type: multipart/mixed; boundary="envbJBWh7q8WU6mo" List-Id: To: linux-hotplug@vger.kernel.org --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline; filename="01-very-short-user-name.patch" ===== 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; } --envbJBWh7q8WU6mo-- ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel