Commit 6a14c03f authored by Mike Frysinger's avatar Mike Frysinger

slattach: tweak how we ignore the ret of fchown()

Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
parent d87ceba5
......@@ -204,7 +204,8 @@ tty_lock(char *path, int mode)
(void) close(fd);
return(0); /* keep the lock anyway */
}
(void) fchown(fd, pw->pw_uid, pw->pw_gid);
if (fchown(fd, pw->pw_uid, pw->pw_gid))
/* keep the lock anyway */;
(void) close(fd);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment