about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-12-23 16:50:07 +0000
committerUlrich Drepper <drepper@redhat.com>2008-12-23 16:50:07 +0000
commit49159e12dec8caeeac1bc3829002de81697594a5 (patch)
treebfe67c02c5e7c41e4c05c74f6d3ddf828a495c7e
parent6de79a499109333fe328c28e7ffaab2ded06b3f0 (diff)
downloadglibc-49159e12dec8caeeac1bc3829002de81697594a5.tar.gz
glibc-49159e12dec8caeeac1bc3829002de81697594a5.tar.xz
glibc-49159e12dec8caeeac1bc3829002de81697594a5.zip
* login/utmp_file.c (pututline_file): Replace call to dup2 with
	libc internal symbol __dup2 to avoid access through the PLT.
-rw-r--r--ChangeLog5
-rw-r--r--login/utmp_file.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3d676ba7f5..9ea040c96f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-12-13  Klaus Dittrich  <kladit@arcor.de>
+
+	* login/utmp_file.c (pututline_file): Replace call to dup2 with
+	libc internal symbol __dup2 to avoid access through the PLT.
+
 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
 
 	[BZ #6545]
diff --git a/login/utmp_file.c b/login/utmp_file.c
index fb5840242e..f32144d1f7 100644
--- a/login/utmp_file.c
+++ b/login/utmp_file.c
@@ -437,7 +437,7 @@ pututline_file (const struct utmp *data)
 #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;