923a60
From 3d9f88326fefe4bf8f5ed4b1210c6b563a3eecff Mon Sep 17 00:00:00 2001
923a60
From: Martin Pitt <martin.pitt@ubuntu.com>
923a60
Date: Tue, 17 Feb 2015 12:47:51 +0100
923a60
Subject: [PATCH] tmpfiles: Fix parse_acl error message
923a60
923a60
parse_acl() returns the error instead of setting errno.
923a60
923a60
(cherry picked from commit 484adfd914504cd7e95867cea20ca7af71b888f2)
923a60
---
923a60
 src/tmpfiles/tmpfiles.c | 2 +-
923a60
 1 file changed, 1 insertion(+), 1 deletion(-)
923a60
923a60
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
923a60
index c948d4d218..88ba7e46a2 100644
923a60
--- a/src/tmpfiles/tmpfiles.c
923a60
+++ b/src/tmpfiles/tmpfiles.c
923a60
@@ -689,7 +689,7 @@ static int get_acls_from_arg(Item *item) {
923a60
          * afterwards, so the mask can be added now if necessary. */
923a60
         r = parse_acl(item->argument, &item->acl_access, &item->acl_default, !item->force);
923a60
         if (r < 0)
923a60
-                log_warning_errno(errno, "Failed to parse ACL \"%s\": %m. Ignoring",
923a60
+                log_warning_errno(r, "Failed to parse ACL \"%s\": %m. Ignoring",
923a60
                                   item->argument);
923a60
 #else
923a60
         log_warning_errno(ENOSYS, "ACLs are not supported. Ignoring");