- char *temp;
- int retval;
-
- retval = sysfs_get_mnt_path(sysfs_path, sizeof(sysfs_path));
- if (retval)
- dbg("sysfs_get_mnt_path failed");
-
- /* see if we should try to override any of the default values */
- if (getenv("UDEV_TEST") != NULL) {
- temp = getenv("SYSFS_PATH");
- if (temp != NULL) {
- strlcpy(sysfs_path, temp, sizeof(sysfs_path));
- no_trailing_slash(sysfs_path);
- }