From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Karl O. Pinc" Date: Sat, 28 Jun 2008 00:38:44 +0000 Subject: Patch to udev.7 to clarify $attr{} parent searching Message-Id: <1214613524l.30059l.0l@mofo> MIME-Version: 1 Content-Type: multipart/mixed; boundary="=-9ubpxuHVndeu7y3/N0K5" List-Id: To: linux-hotplug@vger.kernel.org --=-9ubpxuHVndeu7y3/N0K5 Content-Type: text/plain; charset=us-ascii; DelSp=Yes; Format=Flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Attached patch against udev.7 of udev-124. Clarifies that the first match is used when $attr{} substitution searches through parent devices. Apply in udev-124 directory with: patch < /foo/udev.7-patch (Also, I didn't make the change, but shouldn't the last sentence of the patched paragraph be a new paragraph?) Karl Free Software: "You don't pay back, you pay forward." -- Robert A. Heinlein --=-9ubpxuHVndeu7y3/N0K5 Content-Type: text/x-patch; charset=us-ascii; name=udev.7-patch Content-Disposition: attachment; filename=udev.7-patch Content-Transfer-Encoding: quoted-printable --- ../../udev-124/udev.7 2008-06-12 00:24:30.000000000 -0500 +++ udev.7 2008-06-27 19:28:18.000000000 -0500 @@ -357,7 +357,7 @@ .PP \fB$attr{\fR\fB\fIfile\fR\fR\fB}\fR, \fB%s{\fR\fB\fIfile\fR\fR\fB}\fR .RS 4 -The value of a sysfs attribute found at the device, where all keys of the = rule have matched\. If the matching device does not have such an attribute,= all devices along the chain of parents are searched for a matching attribu= te\. If the attribute is a symlink, the last element of the symlink target = is returned as the value\. +The value of a sysfs attribute found at the device, where all keys of the = rule have matched\. If the matching device does not have such an attribute = then follow the chain of parent devices and use the value of the first attr= ibute that matches\. If the attribute is a symlink, the last element of the= symlink target is returned as the value\. .RE .PP \fB$env{\fR\fB\fIkey\fR\fR\fB}\fR, \fB%E{\fR\fB\fIkey\fR\fR\fB}\fR --=-9ubpxuHVndeu7y3/N0K5--