]> err.no Git - systemd/commitdiff
[PATCH] changed the default location of the database to /udev/.udev.tdb to be LSB...
authorgreg@kroah.com <greg@kroah.com>
Tue, 25 Nov 2003 07:14:44 +0000 (23:14 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:13:04 +0000 (21:13 -0700)
Finally the Debian people can get off my back...

udev.c
udev.h

diff --git a/udev.c b/udev.c
index a562bc27bea63ceb570598f4e2bed65300e6108f..094905ecc2025a90288c9eb5e0fb901bc0b951e3 100644 (file)
--- a/udev.c
+++ b/udev.c
@@ -107,7 +107,7 @@ static void get_dirs(void)
        }
        dbg("sysfs_path='%s'", sysfs_path);
 
-       strncpy(udev_db_filename, udev_config_dir, sizeof(udev_db_filename));
+       strncpy(udev_db_filename, udev_root, sizeof(udev_db_filename));
        strncat(udev_db_filename, udev_db, sizeof(udev_db_filename));
 
        strncpy(udev_config_filename, udev_config_dir, sizeof(udev_config_filename));
diff --git a/udev.h b/udev.h
index 8e35cb708fcd952677025a60c65ac699cf17a96e..89943074699daf8ef7cf690fb31aa89e7f5094ec 100644 (file)
--- a/udev.h
+++ b/udev.h
@@ -52,7 +52,7 @@ extern int log_message (int level, const char *format, ...)
 
 
 /* filenames for the config and database files */
-#define UDEV_DB                                "udev.tdb"
+#define UDEV_DB                                ".udev.tdb"
 #define UDEV_CONFIG_PERMISSION_FILE    "udev.permissions"
 #define UDEV_CONFIG_FILE               "udev.config"