[PATCH] change UDEV_SYSFS_PATH environment variable due to libsysfs change.
This commit is contained in:
parent
dc5cecf659
commit
e40fec176b
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
export UDEV_TEST=yes
|
export UDEV_TEST=yes
|
||||||
export UDEV_SYSFS_PATH=$PWD/sys/
|
export SYSFS_PATH=$PWD/sys/
|
||||||
export UDEV_CONFIG_DIR=$PWD/
|
export UDEV_CONFIG_DIR=$PWD/
|
||||||
export UDEV_ROOT=$PWD/udev/
|
export UDEV_ROOT=$PWD/udev/
|
||||||
export UDEV_DB=udev.tdb
|
export UDEV_DB=udev.tdb
|
||||||
|
|
2
udev.c
2
udev.c
|
@ -86,7 +86,7 @@ static void get_dirs(void)
|
||||||
temp = getenv("UDEV_TEST");
|
temp = getenv("UDEV_TEST");
|
||||||
if (temp != NULL) {
|
if (temp != NULL) {
|
||||||
/* hm testing is happening, use the specified values, if they are present */
|
/* hm testing is happening, use the specified values, if they are present */
|
||||||
temp = getenv("UDEV_SYSFS_PATH");
|
temp = getenv("SYSFS_PATH");
|
||||||
if (temp)
|
if (temp)
|
||||||
strncpy(sysfs_path, temp, sizeof(sysfs_path));
|
strncpy(sysfs_path, temp, sizeof(sysfs_path));
|
||||||
temp = getenv("UDEV_CONFIG_DIR");
|
temp = getenv("UDEV_CONFIG_DIR");
|
||||||
|
|
Loading…
Reference in New Issue