* login/utmp_file.c (pututline_file): Replace call to dup2 with
authorUlrich Drepper <drepper@redhat.com>
Tue, 23 Dec 2008 16:50:07 +0000 (16:50 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 23 Dec 2008 16:50:07 +0000 (16:50 +0000)
libc internal symbol __dup2 to avoid access through the PLT.

ChangeLog
login/utmp_file.c

index 3d676ba7f5c9fd71854a3a3d7c54365e4e3a5d0d..9ea040c96fca3867250d3170bc437eb0f1e1005a 100644 (file)
--- 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]
index fb5840242e21f3eb86f27fbb2e7eccfa599be7dc..f32144d1f74daf7f85b84aa0bef1c36fb6bfb5e9 100644 (file)
@@ -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;