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 /libudev | |
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 'libudev')
-rw-r--r-- | libudev/libudev-private.h | 1 | ||||
-rw-r--r-- | libudev/libudev.c | 11 |
2 files changed, 0 insertions, 12 deletions
diff --git a/libudev/libudev-private.h b/libudev/libudev-private.h index fe1575d60b..c2fff00211 100644 --- a/libudev/libudev-private.h +++ b/libudev/libudev-private.h @@ -59,7 +59,6 @@ void udev_log(struct udev *udev, const char *format, ...) __attribute__((format(printf, 6, 7))); const char *udev_get_rules_path(struct udev *udev); -int udev_get_run(struct udev *udev); struct udev_list_entry *udev_add_property(struct udev *udev, const char *key, const char *value); struct udev_list_entry *udev_get_properties_list_entry(struct udev *udev); diff --git a/libudev/libudev.c b/libudev/libudev.c index 190913871e..411e9aec8b 100644 --- a/libudev/libudev.c +++ b/libudev/libudev.c @@ -45,7 +45,6 @@ struct udev { char *rules_path; struct udev_list_node properties_list; int log_priority; - int run; }; void udev_log(struct udev *udev, @@ -122,7 +121,6 @@ struct udev *udev_new(void) udev->log_fn = log_stderr; udev->log_priority = LOG_ERR; udev_list_init(&udev->properties_list); - udev->run = 1; udev->dev_path = strdup("/dev"); udev->sys_path = strdup("/sys"); config_file = strdup(SYSCONFDIR "/udev/udev.conf"); @@ -140,10 +138,6 @@ struct udev *udev_new(void) udev_add_property(udev, "SYSFS_PATH", udev->sys_path); } - env = getenv("UDEV_RUN"); - if (env != NULL && strcmp(env, "0") == 0) - udev->run = 0; - env = getenv("UDEV_CONFIG_FILE"); if (env != NULL) { free(config_file); @@ -359,11 +353,6 @@ const char *udev_get_rules_path(struct udev *udev) return udev->rules_path; } -int udev_get_run(struct udev *udev) -{ - return udev->run; -} - /** * udev_get_sys_path: * @udev: udev library context |