]> granicus.if.org Git - sudo/commitdiff
Fix typo in safe_close() made while converting to debug framework
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 27 Feb 2012 19:46:11 +0000 (14:46 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 27 Feb 2012 19:46:11 +0000 (14:46 -0500)
that prevented it from actually closing anything.

src/exec_pty.c

index 422989275e415f0a86ca148f2c19c30bad2f9038..414ac373cade50123017df97bd86c6449a825c7c 100644 (file)
@@ -1263,5 +1263,5 @@ safe_close(int fd)
        errno = EINVAL;
        return -1;
     }
-    debug_return_int(fd);
+    debug_return_int(close(fd));
 }