From: Kay Sievers Date: Thu, 21 May 2009 21:11:41 +0000 Subject: Re: Newer udev not performing %-substitutions on OWNER and GROUP Message-Id: List-Id: References: <4A15BA25.7030100@cs.cmu.edu> In-Reply-To: <4A15BA25.7030100@cs.cmu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: linux-hotplug@vger.kernel.org On Thu, May 21, 2009 at 22:31, Benjamin Gilbert 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;h5e40edc647d8ccfc27c9cd3163ab5dbf63ed6c Kay