]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
polkit: explicitly ignore fd_wait_for_event()'s return value
authorShreenidhi Shedi <sshedi@vmware.com>
Sat, 4 Jun 2022 10:18:09 +0000 (15:48 +0530)
committerShreenidhi Shedi <sshedi@vmware.com>
Sun, 5 Jun 2022 17:28:01 +0000 (22:58 +0530)
Fixes: CID#1469718
src/shared/spawn-polkit-agent.c

index 7fa75081783a5fcecc7001959f05d6d0f5144a4b..3abb02d03e703aea26d0c9b45810ba95b4b05d12 100644 (file)
@@ -56,7 +56,7 @@ int polkit_agent_open(void) {
                 log_error_errno(r, "Failed to fork TTY ask password agent: %m");
         else
                 /* Wait until the agent closes the fd */
-                fd_wait_for_event(pipe_fd[0], POLLHUP, USEC_INFINITY);
+                (void) fd_wait_for_event(pipe_fd[0], POLLHUP, USEC_INFINITY);
 
         safe_close(pipe_fd[0]);