summaryrefslogtreecommitdiff
path: root/udevdb.c
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2003-10-21 20:19:09 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:01:42 -0700
commitc056c5141b16fe95485eeb233fe8b90954686a60 (patch)
tree0e5ff6219b7bffce255d79ca132296f131b4e4c1 /udevdb.c
parentd4e52dd0d95c21ccda50310404be4b5a540cc498 (diff)
[PATCH] make config files, sysfs root, and udev root configurable from config variables
This will make running tests a lot simpler.
Diffstat (limited to 'udevdb.c')
-rw-r--r--udevdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/udevdb.c b/udevdb.c
index b75bf8048f..ec67a07962 100644
--- a/udevdb.c
+++ b/udevdb.c
@@ -124,12 +124,12 @@ int udevdb_init(int init_flag)
if (init_flag != UDEVDB_DEFAULT && init_flag != UDEVDB_INTERNAL)
return -EINVAL;
- udevdb = tdb_open(UDEV_CONFIG_DIR UDEV_DB, 0, init_flag, O_RDWR | O_CREAT, 0644);
+ udevdb = tdb_open(udev_db_filename, 0, init_flag, O_RDWR | O_CREAT, 0644);
if (udevdb == NULL) {
if (init_flag == UDEVDB_INTERNAL)
dbg("Unable to initialize in-memory database");
else
- dbg("Unable to initialize database at %s", UDEV_CONFIG_DIR UDEV_DB);
+ dbg("Unable to initialize database at %s", udev_db_filename);
return -EINVAL;
}
return 0;