summaryrefslogtreecommitdiff
path: root/udev_config.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-03-27 00:10:03 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:54:59 -0700
commit65005a7f81f86590f7f03bd3d4019c485d0e3c77 (patch)
tree79ce32c7c40ef6d871b5c7cbbcb359b7545a03c3 /udev_config.c
parent93ca11e4be8f4414f09ba60d9d8c77ec8ff2ec3b (diff)
[PATCH] test-suite: remove UDEV_TEST, it's not needed anymore
Diffstat (limited to 'udev_config.c')
-rw-r--r--udev_config.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/udev_config.c b/udev_config.c
index 45b11de2aa..1b6b614260 100644
--- a/udev_config.c
+++ b/udev_config.c
@@ -219,24 +219,14 @@ static int parse_config_file(void)
void udev_init_config(void)
{
+ const char *config;
init_variables();
sysfs_get_mnt_path(sysfs_path, sizeof(sysfs_path));
- /* see if we should try to override any of the default values */
- if (getenv("UDEV_TEST") != NULL) {
- char *temp;
-
- temp = getenv("SYSFS_PATH");
- if (temp != NULL) {
- strlcpy(sysfs_path, temp, sizeof(sysfs_path));
- no_trailing_slash(sysfs_path);
- }
-
- temp = getenv("UDEV_CONFIG_FILE");
- if (temp != NULL)
- strlcpy(udev_config_filename, temp, sizeof(udev_config_filename));
- }
+ config = getenv("UDEV_CONFIG_FILE");
+ if (config != NULL)
+ strlcpy(udev_config_filename, config, sizeof(udev_config_filename));
parse_config_file();
dbg("sysfs_path='%s'", sysfs_path);