From: Zbigniew Jędrzejewski-Szmek Date: Mon, 30 Nov 2015 20:45:39 +0000 (-0500) Subject: test-acl-util: fix two issues from review X-Git-Tag: v229~243^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2074%2Fhead;p=thirdparty%2Fsystemd.git test-acl-util: fix two issues from review https://github.com/systemd/systemd/pull/2063 --- diff --git a/src/test/test-acl-util.c b/src/test/test-acl-util.c index bdea04d7f06..91866daf2df 100644 --- a/src/test/test-acl-util.c +++ b/src/test/test-acl-util.c @@ -41,7 +41,7 @@ static void test_add_acls_for_user(void) { assert_se(fd >= 0); /* Use the mode that user journal files use */ - assert(fchmod(fd, 0640) == 0); + assert_se(fchmod(fd, 0640) == 0); cmd = strjoina("ls -l ", fn); assert_se(system(cmd) == 0); @@ -82,4 +82,6 @@ static void test_add_acls_for_user(void) { int main(int argc, char **argv) { test_add_acls_for_user(); + + return 0; }