* Newer udev not performing %-substitutions on OWNER and GROUP
@ 2009-05-21 20:31 Benjamin Gilbert
2009-05-21 21:11 ` Kay Sievers
2009-05-22 18:44 ` Benjamin Gilbert
0 siblings, 2 replies; 3+ messages in thread
From: Benjamin Gilbert @ 2009-05-21 20:31 UTC (permalink / raw)
To: linux-hotplug
I have a udev rule that sets the ownership of a device node based on the
result of a PROGRAM run, e.g.:
..., PROGRAM="echo 1000", OWNER="%c"
This works in Fedora 10 (udev-127) and Ubuntu 8.10 (udev-124) but not in
Fedora Rawhide (udev-141) or Ubuntu 9.04 (udev-141). Further
investigation reveals that on the affected systems, substitutions appear
not to be working at all for OWNER and GROUP keys. (I tried %c, %m, %M,
%n, and $result.) Replacing OWNER="%c" with OWNER="1000" works for me,
as does SYMLINK+="%c", so the rule is being properly executed.
Is this syntax still supported for OWNER and GROUP? udev(7) claims that
it is.
--Benjamin Gilbert
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Newer udev not performing %-substitutions on OWNER and GROUP
2009-05-21 20:31 Newer udev not performing %-substitutions on OWNER and GROUP Benjamin Gilbert
@ 2009-05-21 21:11 ` Kay Sievers
2009-05-22 18:44 ` Benjamin Gilbert
1 sibling, 0 replies; 3+ messages in thread
From: Kay Sievers @ 2009-05-21 21:11 UTC (permalink / raw)
To: linux-hotplug
On Thu, May 21, 2009 at 22:31, Benjamin Gilbert <bgilbert@cs.cmu.edu> wrote:
> I have a udev rule that sets the ownership of a device node based on the
> result of a PROGRAM run, e.g.:
>
> ..., PROGRAM="echo 1000", OWNER="%c"
>
> This works in Fedora 10 (udev-127) and Ubuntu 8.10 (udev-124) but not in
> Fedora Rawhide (udev-141) or Ubuntu 9.04 (udev-141). Further investigation
> reveals that on the affected systems, substitutions appear not to be working
> at all for OWNER and GROUP keys. (I tried %c, %m, %M, %n, and $result.)
> Replacing OWNER="%c" with OWNER="1000" works for me, as does SYMLINK+="%c",
> so the rule is being properly executed.
>
> Is this syntax still supported for OWNER and GROUP? udev(7) claims that it
> is.
I guess this is the fix:
http://git.kernel.org/?p=linux/hotplug/udev.git;a=commit;h\x055e40edc647d8ccfc27c9cd3163ab5dbf63ed6c
Kay
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Newer udev not performing %-substitutions on OWNER and GROUP
2009-05-21 20:31 Newer udev not performing %-substitutions on OWNER and GROUP Benjamin Gilbert
2009-05-21 21:11 ` Kay Sievers
@ 2009-05-22 18:44 ` Benjamin Gilbert
1 sibling, 0 replies; 3+ messages in thread
From: Benjamin Gilbert @ 2009-05-22 18:44 UTC (permalink / raw)
To: linux-hotplug
Kay Sievers wrote:
> On Thu, May 21, 2009 at 22:31, Benjamin Gilbert <bgilbert@cs.cmu.edu> wrote:
>> I have a udev rule that sets the ownership of a device node based on the
>> result of a PROGRAM run, e.g.:
>>
>> ..., PROGRAM="echo 1000", OWNER="%c"
>>
>> This works in Fedora 10 (udev-127) and Ubuntu 8.10 (udev-124) but not in
>> Fedora Rawhide (udev-141) or Ubuntu 9.04 (udev-141).
>
> I guess this is the fix:
> http://git.kernel.org/?p=linux/hotplug/udev.git;a=commit;h\x055e40edc647d8ccfc27c9cd3163ab5dbf63ed6c
Yep, thanks.
--Benjamin Gilbert
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-05-22 18:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-21 20:31 Newer udev not performing %-substitutions on OWNER and GROUP Benjamin Gilbert
2009-05-21 21:11 ` Kay Sievers
2009-05-22 18:44 ` Benjamin Gilbert
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).