mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-12 14:21:18 +08:00
* login/utmp_file.c (pututline_file): Replace call to dup2 with
libc internal symbol __dup2 to avoid access through the PLT.
This commit is contained in:
parent
6de79a4991
commit
49159e12de
@ -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]
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user