All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: udev 055
Date: Fri, 18 Mar 2005 00:59:19 +0000	[thread overview]
Message-ID: <1111107559.4823.8.camel@localhost.localdomain> (raw)
In-Reply-To: <4239F0A3.6010700@jg555.com>

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

On Thu, 2005-03-17 at 16:35 -0800, Jim Gifford wrote:
> Kay Sievers wrote:
> 
> >Please run:
> >  udevtest /sys/class/sound/timer sound
> >
> >or whatever is the devpath for that device and look if the right rule
> >gets applied.

> version 054
> looking at '/class/sound/timer'
> opened class_dev->name='timer'
> configured rule in '/etc/udev/rules.d/25-lfs.rules[16]' applied, 'timer' 
> becomes 'snd/%k'
> creating device node '/dev/snd/timer', major = '116', minor = '33', mode 
> = '0660', uid = '0', gid = '17'
> 
> version 055
> looking at '/class/sound/timer'
> opened class_dev->name='timer'
> configured rule in '/etc/udev/rules.d/25-lfs.rules[16]' applied, 'timer' 
> becomes 'snd/%k'
> creating device node '/dev/snd/timer', major = '116', minor = '33', mode 
> = '0660', uid = '0', gid = '0'

I can confirm this. It's a bad typo caused by changing the way klibc is
integrated. We look in /etc/passwd for the group. :(
Patch attached, thanks for catching this.

Thanks,
Kay

[-- Attachment #2: fix-group.patch --]
[-- Type: text/x-patch, Size: 778 bytes --]

===== udev_add.c 1.103 vs edited =====
--- 1.103/udev_add.c	2005-03-12 14:36:31 +01:00
+++ edited/udev_add.c	2005-03-18 01:51:23 +01:00
@@ -150,7 +150,7 @@ static int create_node(struct udevice *u
 		if (endptr[0] == '\0')
 			gid = (gid_t) id;
 		else
-			gid = lookup_user(udev->group);
+			gid = lookup_group(udev->group);
 	}
 
 	if (!udev->test_run) {
===== udev_libc_wrapper.c 1.20 vs edited =====
--- 1.20/udev_libc_wrapper.c	2005-03-18 01:27:30 +01:00
+++ edited/udev_libc_wrapper.c	2005-03-18 01:47:22 +01:00
@@ -140,7 +140,7 @@ static unsigned long get_id_by_name(cons
 		dbg("can't open '%s' as db file", dbfile);
 		return 0;
 	}
-	dbg("reading '%s' as db file", dbfile);
+	dbg("search '%s' in '%s'", uname, dbfile);
 
 	/* loop through the whole file */
 	cur = 0;

  parent reply	other threads:[~2005-03-18  0:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-17 21:03 udev 055 Jim Gifford
2005-03-18  0:25 ` Kay Sievers
2005-03-18  0:35 ` Jim Gifford
2005-03-18  0:59 ` Kay Sievers [this message]
2005-03-18  2:44 ` Jim Gifford

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=1111107559.4823.8.camel@localhost.localdomain \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.