mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 09:57:41 +00:00
Remove unused variable introduced in last commit.
This commit is contained in:
parent
760c9c1107
commit
857653f9f5
@ -385,7 +385,6 @@ sudo_needs_pty(const struct command_details *details)
|
|||||||
bool
|
bool
|
||||||
fd_matches_tty(int fd, struct stat *tty_sb, struct stat *fd_sb)
|
fd_matches_tty(int fd, struct stat *tty_sb, struct stat *fd_sb)
|
||||||
{
|
{
|
||||||
bool ret;
|
|
||||||
debug_decl(fd_is_user_tty, SUDO_DEBUG_EXEC);
|
debug_decl(fd_is_user_tty, SUDO_DEBUG_EXEC);
|
||||||
|
|
||||||
if (fstat(fd, fd_sb) == -1 || !S_ISCHR(fd_sb->st_mode)) {
|
if (fstat(fd, fd_sb) == -1 || !S_ISCHR(fd_sb->st_mode)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user