linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* rule_generator.functions: invalid PATH?
@ 2006-11-06  3:05 Bryan Kadzban
  2006-11-06 20:20 ` Marco d'Itri
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: Bryan Kadzban @ 2006-11-06  3:05 UTC (permalink / raw)
  To: linux-hotplug


[-- Attachment #1.1.1: Type: text/plain, Size: 780 bytes --]

At the start of the extras/rule_generator/rule_generator.functions file,
PATH is set to just "/sbin:/bin".  However, the sysreadlink function
uses the readlink program from coreutils, which is (by default anyway)
installed in /usr/bin.  The function also does not specify an explicit
path to readlink.  sysreadlink therefore never works when readlink is in
/usr/bin.

Attached is a patch that adds /usr/bin to the end of the PATH.  A
cursory inspection of the rest of the file doesn't show anything that
this will obviously break, though I don't know for sure.  If it does
break something, an alternative would be to replace "readlink args" with
"/bin/readlink args || /usr/bin/readlink args".  (Because I'm not sure
where various distros put readlink; some may move it to /bin.)

[-- Attachment #1.1.2: udev-103-rule_generator-PATH-fix.patch --]
[-- Type: text/plain, Size: 661 bytes --]

diff -Naur udev-103/extras/rule_generator/rule_generator.functions udev-103-patched/extras/rule_generator/rule_generator.functions
--- udev-103/extras/rule_generator/rule_generator.functions	2006-10-20 08:43:35.000000000 -0400
+++ udev-103-patched/extras/rule_generator/rule_generator.functions	2006-11-05 21:47:12.000000000 -0500
@@ -4,7 +4,7 @@
 # under the terms of the GNU General Public License as published by the
 # Free Software Foundation version 2 of the License.
 
-PATH='/sbin:/bin'
+PATH='/sbin:/bin:/usr/bin'
 
 # Read a single line from file $1 in the $DEVPATH directory.
 # The function must not return an error even if the file does not exist.

[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 258 bytes --]

[-- Attachment #2: Type: text/plain, Size: 373 bytes --]

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

[-- Attachment #3: Type: text/plain, Size: 226 bytes --]

_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2006-11-07 17:55 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-06  3:05 rule_generator.functions: invalid PATH? Bryan Kadzban
2006-11-06 20:20 ` Marco d'Itri
2006-11-06 23:23 ` Bryan Kadzban
2006-11-06 23:42 ` Dan Nicholson
2006-11-07 11:35 ` Piter PUNK
2006-11-07 11:39 ` Marco d'Itri
2006-11-07 11:44 ` Piter PUNK
2006-11-07 12:22 ` Kay Sievers
2006-11-07 12:39 ` Piter PUNK
2006-11-07 12:42 ` Marco d'Itri
2006-11-07 12:56 ` Piter PUNK
2006-11-07 12:57 ` Kay Sievers
2006-11-07 12:58 ` Marco d'Itri
2006-11-07 13:09 ` Piter PUNK
2006-11-07 13:14 ` Marco d'Itri
2006-11-07 13:17 ` MUNEDA Takahiro
2006-11-07 13:19 ` Piter PUNK
2006-11-07 17:49 ` Piter PUNK
2006-11-07 17:55 ` Bryan Kadzban

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).