diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-11-30 15:45:39 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-11-30 15:48:21 -0500 |
commit | d879fca6bcc391ec69a900affaafaaa51e02e5c5 (patch) | |
tree | e3af4b39930e579c40404de3d0df8ac035d277c3 | |
parent | afae249efa4774c6676738ac5de6aeb4daf4889f (diff) |
test-acl-util: fix two issues from review
https://github.com/systemd/systemd/pull/2063
-rw-r--r-- | src/test/test-acl-util.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/test-acl-util.c b/src/test/test-acl-util.c index bdea04d7f0..91866daf2d 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; } |