utmp_file.c.diff

Klaus Dittrich kladit@arcor.de
Sat Dec 20 21:33:00 GMT 2008


-------------- next part --------------
2008-12-13  Klaus Dittrich  <kladit@arcor.de>

	* libc/login/utmp_file.c (pututline_file): replace call to 'dup2()'
	with libc internal symbol '__dup2()' to avoid access through the PLT.

--- libc/login/utmp_file.c.ORIG	2008-11-30 07:56:18.000000000 +0100
+++ libc/login/utmp_file.c	2008-12-12 20:19:05.000000000 +0100
@@ -437,7 +437,7 @@
 #endif
 
       if (__lseek64 (new_fd, __lseek64 (file_fd, 0, SEEK_CUR), SEEK_SET) == -1
-	  || dup2 (new_fd, file_fd) < 0)
+	  || __dup2 (new_fd, file_fd) < 0)
 	{
 	  close_not_cancel_no_status (new_fd);
 	  return NULL;


More information about the Libc-alpha mailing list