]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tmpfiles: properly return error code from path_set_acl()
authorLennart Poettering <lennart@poettering.net>
Thu, 9 Apr 2015 11:12:26 +0000 (13:12 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 9 Apr 2015 11:13:07 +0000 (13:13 +0200)
src/tmpfiles/tmpfiles.c

index f207f8d4b4d6861233133d1f0447b750b5550951..d34de70e1d343e4f5bab1cc41f88a44e60b14440 100644 (file)
@@ -734,10 +734,10 @@ static int path_set_acl(const char *path, acl_type_t type, acl_t acl, bool modif
 
         r = acl_set_file(path, type, dup);
         if (r < 0)
-                return -log_error_errno(errno,
-                                        "Setting %s ACL \"%s\" on %s failed: %m",
-                                        type == ACL_TYPE_ACCESS ? "access" : "default",
-                                        strna(t), path);
+                return log_error_errno(errno,
+                                       "Setting %s ACL \"%s\" on %s failed: %m",
+                                       type == ACL_TYPE_ACCESS ? "access" : "default",
+                                       strna(t), path);
 
         return 0;
 }