[systemd-commits] src/core

Lennart Poettering lennart at kemper.freedesktop.org
Mon Nov 25 08:59:47 PST 2013


 src/core/device.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c5ab2e02dc7086c72b23390594944b9278282347
Author: Lennart Poettering <lennart at poettering.net>
Date:   Mon Nov 25 17:46:21 2013 +0100

    device: fix typo

diff --git a/src/core/device.c b/src/core/device.c
index 4ed06a6..63d0302 100644
--- a/src/core/device.c
+++ b/src/core/device.c
@@ -265,7 +265,7 @@ static int device_update_unit(Manager *m, struct udev_device *dev, const char *p
                                 char e[l+1];
 
                                 memcpy(e, w, l);
-                                e[l] = 1;
+                                e[l] = 0;
 
                                 n = unit_name_mangle(e);
                                 if (!n) {



More information about the systemd-commits mailing list