]> err.no Git - systemd/commitdiff
fix location of database files
authorKay Sievers <kay.sievers@vrfy.org>
Wed, 20 May 2009 23:44:45 +0000 (01:44 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Wed, 20 May 2009 23:44:45 +0000 (01:44 +0200)
udev/lib/libudev-device-db-write.c
udev/lib/libudev-device.c

index d9d97d45a091a5c43e672c1da3517ced13c5249d..a8e66f7884bc8cd5cff16cd94a3521e069a34f52 100644 (file)
@@ -27,7 +27,7 @@ static size_t devpath_to_db_path(struct udev *udev, const char *devpath, char *f
 
        s = filename;
        l = util_strpcpyl(&s, len, udev_get_dev_path(udev), "/.udev/db/", NULL);
-       return util_path_encode(devpath, filename, l);
+       return util_path_encode(devpath, s, l);
 }
 
 int udev_device_update_db(struct udev_device *udev_device)
index 37b3a3b7a2e6524aca4ad3a016f4191897fa7164..ea54badde41a2a7db06734f3bd41f3ba5b1150c1 100644 (file)
@@ -68,7 +68,7 @@ static size_t devpath_to_db_path(struct udev *udev, const char *devpath, char *f
 
        s = filename;
        l = util_strpcpyl(&s, len, udev_get_dev_path(udev), "/.udev/db/", NULL);
-       return util_path_encode(devpath, filename, l);
+       return util_path_encode(devpath, s, l);
 }
 
 int udev_device_read_db(struct udev_device *udev_device)