[systemd-commits] 2 commits - src/shared src/test

Lennart Poettering lennart at kemper.freedesktop.org
Mon Jun 30 03:41:44 PDT 2014


 src/shared/util.c         |    2 +-
 src/test/test-unit-name.c |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 6afeb1cfe404e8615441c8727b48343253fc731a
Author: Lennart Poettering <lennart at poettering.net>
Date:   Mon Jun 30 12:41:26 2014 +0200

    util: fix comment

diff --git a/src/shared/util.c b/src/shared/util.c
index 1709bb7..af6bde2 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -284,7 +284,7 @@ int parse_uid(const char *s, uid_t* ret_uid) {
         if (uid == (uid_t) 0xFFFFFFFF)
                 return -EINVAL;
 
-        /* A long time ago UIDs where 16bit, hence explicitly avoid the 32bit -1 too */
+        /* A long time ago UIDs where 16bit, hence explicitly avoid the 16bit -1 too */
         if (uid == (uid_t) 0xFFFF)
                 return -EINVAL;
 

commit 6dbfd104711fa53d35b52cb54ed4557c9099145f
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date:   Wed Jun 11 21:20:52 2014 +0200

    tests: add missing XDG_RUNTIME_DIR env variable
    
    Otherwise the test fails because specifier_runtime() returns -ENOTSUP
    when XDG_RUNTIME_DIR is not set.

diff --git a/src/test/test-unit-name.c b/src/test/test-unit-name.c
index 9179081..db728bc 100644
--- a/src/test/test-unit-name.c
+++ b/src/test/test-unit-name.c
@@ -146,6 +146,7 @@ static int test_unit_printf(void) {
 
         assert_se(setenv("USER", "root", 1) == 0);
         assert_se(setenv("HOME", "/root", 1) == 0);
+        assert_se(setenv("XDG_RUNTIME_DIR", "/run/user/1/", 1) == 0);
 
         assert_se(u = unit_new(m, sizeof(Service)));
         assert_se(unit_add_name(u, "blah.service") == 0);



More information about the systemd-commits mailing list