]> 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.

--HG--
branch : 1.8

src/exec_pty.c

index 3175813be64bf8397d4e84aca44979fd43130a20..d40408c0fe3d563ee675a8396ab302d0b001db2b 100644 (file)
@@ -1251,5 +1251,5 @@ safe_close(int fd)
        errno = EINVAL;
        return -1;
     }
-    debug_return_int(fd);
+    debug_return_int(close(fd));
 }