chiark / gitweb /
tmpfiles: Fix parse_acl error message
authorMartin Pitt <martin.pitt@ubuntu.com>
Tue, 17 Feb 2015 11:47:51 +0000 (12:47 +0100)
committerMartin Pitt <martin.pitt@ubuntu.com>
Tue, 17 Feb 2015 11:47:51 +0000 (12:47 +0100)
parse_acl() returns the error instead of setting errno.

src/tmpfiles/tmpfiles.c

index c948d4d218b7cd42ac2d6125f2da3c010c892d46..88ba7e46a28139b4fd6e5da5a262ca80b7ad2241 100644 (file)
@@ -689,7 +689,7 @@ static int get_acls_from_arg(Item *item) {
          * afterwards, so the mask can be added now if necessary. */
         r = parse_acl(item->argument, &item->acl_access, &item->acl_default, !item->force);
         if (r < 0)
-                log_warning_errno(errno, "Failed to parse ACL \"%s\": %m. Ignoring",
+                log_warning_errno(r, "Failed to parse ACL \"%s\": %m. Ignoring",
                                   item->argument);
 #else
         log_warning_errno(ENOSYS, "ACLs are not supported. Ignoring");