diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-12-25 15:23:45 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-12-25 15:23:45 +0100 |
commit | f46d2e54a82086eddcd9cd91e7908e87d7424148 (patch) | |
tree | ea08dbce116f1411ecb5369f696b3fac000ebf00 /udev/udevadm-test.c | |
parent | 1d67ec16c44711bbfb50ac7dd8bb2fb6e64a80f3 (diff) |
remove UDEV_RUN environment variable
It handles only RUN but not IMPORT and PROGRAM. There is no sane way
to suppress program execution. Most important programs run with IMPORT
these days. Also events can no longer suppressed with the libudev
netlink messages, so UDEV_RUN does nothing useful and is just
inconsistent.
Diffstat (limited to 'udev/udevadm-test.c')
-rw-r--r-- | udev/udevadm-test.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/udev/udevadm-test.c b/udev/udevadm-test.c index 5dd515bcdc..894620073a 100644 --- a/udev/udevadm-test.c +++ b/udev/udevadm-test.c @@ -119,14 +119,13 @@ int udevadm_test(struct udev *udev, int argc, char *argv[]) udev_list_entry_foreach(entry, udev_device_get_properties_list_entry(dev)) info(udev, "%s=%s\n", udev_list_entry_get_name(entry), udev_list_entry_get_value(entry)); - if (err == 0 && udev_get_run(udev)) { + if (err == 0) udev_list_entry_foreach(entry, udev_list_get_entry(&event->run_list)) { char program[UTIL_PATH_SIZE]; udev_event_apply_format(event, udev_list_entry_get_name(entry), program, sizeof(program)); info(udev, "run: '%s'\n", program); } - } udev_event_unref(event); udev_device_unref(dev); exit: |