From: Todd C. Miller Date: Mon, 27 Feb 2012 19:46:11 +0000 (-0500) Subject: Fix typo in safe_close() made while converting to debug framework X-Git-Tag: SUDO_1_8_5~1^2~185 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a37b4bf739366ea82f33404ec8eeac281560fc5;p=sudo Fix typo in safe_close() made while converting to debug framework that prevented it from actually closing anything. --- diff --git a/src/exec_pty.c b/src/exec_pty.c index 422989275..414ac373c 100644 --- a/src/exec_pty.c +++ b/src/exec_pty.c @@ -1263,5 +1263,5 @@ safe_close(int fd) errno = EINVAL; return -1; } - debug_return_int(fd); + debug_return_int(close(fd)); }