blob: 9f106e027273212fa27103728f8380e8f13ebaa4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--- udev-021/udev-add.c.orig 2004-03-06 18:38:37.000000000 -0500
+++ udev-021/udev-add.c 2004-03-06 18:39:05.000000000 -0500
@@ -226,10 +226,12 @@
if (endptr[0] == '\0')
uid = (uid_t) id;
else {
+ struct passwd *pw;
+
if (strncmp(dev->owner, LOCAL_USER, sizeof(LOCAL_USER)) == 0)
set_to_local_user(dev->owner);
- struct passwd *pw = getpwnam(dev->owner);
+ pw = getpwnam(dev->owner);
if (pw == NULL)
dbg("specified user unknown '%s'", dev->owner);
else
|