chiark / gitweb /
uaccess-command: [trivial] Differentiate apply vs reset error log messages.
authorArthur Taylor <art@ified.ca>
Tue, 13 Feb 2018 19:51:19 +0000 (11:51 -0800)
committerSven Eden <yamakuzure@gmx.net>
Wed, 7 Mar 2018 15:49:51 +0000 (16:49 +0100)
Also change systemd to logind in a comment.

src/uaccess-command/uaccess-command.c

index efb9dcd6258e1c82c6c0d57f2afd9a9f5d7cc419..df790e1348c40afa210485916185909327cafa1c 100644 (file)
@@ -40,7 +40,7 @@ static int dev_uaccess(const char *path, const char *seat) {
 
         umask(0022);
 
-        /* don't muck around with ACLs when the system is not running systemd */
+        /* don't muck around with ACLs when the system is not running logind */
         if (!logind_running())
                 return 0;
 
@@ -73,7 +73,7 @@ finish:
                 /* Better be safe than sorry and reset ACL */
                 k = devnode_acl(path, true, false, 0, false, 0);
                 if (k < 0) {
-                        log_full_errno(errno == ENOENT ? LOG_DEBUG : LOG_ERR, k, "Failed to apply ACL on %s: %m", path);
+                        log_full_errno(errno == ENOENT ? LOG_DEBUG : LOG_ERR, k, "Failed to reset ACL on %s: %m", path);
                         if (r >= 0)
                                 r = k;
                 }