From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrey Borzenkov Date: Tue, 04 Apr 2006 16:31:24 +0000 Subject: Re: Why not picking up ENV variables? Message-Id: <200604042031.26075.arvidjaar@mail.ru> List-Id: References: <442FD482.5000707@bl.com> In-Reply-To: <442FD482.5000707@bl.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 04 April 2006 15:20, Moshe Yudkowsky wrote: > This patch didn't seem to help. > > > Could you try if this patch helps? > > right; the patch below does (verified with exact copy of your rule). - -andrey diff --git a/udev_device.c b/udev_device.c index 5db2709..6ee6b13 100644 - --- a/udev_device.c +++ b/udev_device.c @@ -101,6 +101,10 @@ int udev_device_event(struct udev_rules if (major(udev->devt) != 0 && strcmp(udev->action, "remove") = 0) { struct name_entry *name_loop; + udev_db_get_device(udev, udev->dev->devpath); + /* restore stored persistent data */ + list_for_each_entry(name_loop, &udev->env_list, node) + putenv(name_loop->name); udev_rules_get_run(rules, udev); if (udev->ignore_device) { info("device event will be ignored"); @@ -109,9 +113,6 @@ int udev_device_event(struct udev_rules /* get data from db, remove db-entry, delete node */ retval = udev_remove_device(udev); - - /* restore stored persistent data */ - - list_for_each_entry(name_loop, &udev->env_list, node) - - putenv(name_loop->name); return retval; } -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFEMp9dR6LMutpd94wRAoxiAKCzzMd5UqT5JxMFGK2mEx+Kp8JhZwCcDO6g 1kIiyFxtXo/ShqzoC5NCWVc=UctB -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ 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