2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 01:49:11 +00:00

Remove unused variable introduced in last commit.

This commit is contained in:
Todd C. Miller 2023-07-26 19:49:25 -06:00
parent 760c9c1107
commit 857653f9f5

View File

@ -385,7 +385,6 @@ sudo_needs_pty(const struct command_details *details)
bool
fd_matches_tty(int fd, struct stat *tty_sb, struct stat *fd_sb)
{
bool ret;
debug_decl(fd_is_user_tty, SUDO_DEBUG_EXEC);
if (fstat(fd, fd_sb) == -1 || !S_ISCHR(fd_sb->st_mode)) {