Skip to content

Commit

Permalink
* login/utmp_file.c (pututline_file): Replace call to dup2 with
Browse files Browse the repository at this point in the history
	libc internal symbol __dup2 to avoid access through the PLT.
  • Loading branch information
Ulrich Drepper committed Dec 23, 2008
1 parent 6de79a4 commit 49159e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
2 changes: 1 addition & 1 deletion login/utmp_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 49159e1

Please sign in to comment.