On Wed, Aug 16, 2006 at 10:58:54PM -0700, Dan Nicholson wrote:
> Right. I get the same thing here. What I meant was, I think it's a bug
> in udevtest. The same comment "/* remove sysfs_path if given */" is
> used in both udevtest and udevinfo. However, it only works in
> udevinfo.

The problem is that sysfs_init() (which initialises sysfs_path) is
called too late - after it tries to remove sysfs_path from the path.

This patch should fix it.

Alex :-)

-- 
Pippin
Computer Monkey to the Pelican
www.oxrev.org.uk, www.corpusjcr.org, www.rev.org.uk
diff -urw udev-096.orig/udevtest.c udev-096/udevtest.c
--- udev-096.orig/udevtest.c    2006-08-17 12:01:45.000000000 +0100
+++ udev-096/udevtest.c 2006-08-17 12:02:09.000000000 +0100
@@ -64,6 +64,7 @@
        udev_config_init();
        if (udev_log_priority < LOG_INFO)
                udev_log_priority = LOG_INFO;
+       sysfs_init();
 
        if (argc != 2) {
                info("Usage: udevtest <devpath>");
@@ -82,7 +83,6 @@
                } else
                        devpath = argv[1];
 
-       sysfs_init();
        udev_rules_init(&rules, 0);
 
        dev = sysfs_device_get(devpath);

Attachment: pgpWbVmUhekDI.pgp
Description: PGP signature

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to