From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: [PATCH] bugfix for local user
Date: Tue, 02 Mar 2004 02:11:37 +0000 [thread overview]
Message-ID: <20040302021137.GA6885@vrfy.org> (raw)
[-- 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;
}
next reply other threads:[~2004-03-02 2:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-02 2:11 Kay Sievers [this message]
2004-03-02 2:59 ` [PATCH] bugfix for local user Robert Love
2004-03-02 20:27 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040302021137.GA6885@vrfy.org \
--to=kay.sievers@vrfy.org \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).