diff options
author | Ulrich Drepper <drepper@redhat.com> | 2009-10-29 11:02:34 -0700 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2009-10-29 11:02:34 -0700 |
commit | d94760f944cebf05b239dd0b65c3b40a5577013b (patch) | |
tree | 8fc13b428f505fc948b55cc9bc92ea711d58f9a2 /ChangeLog | |
parent | 8d55628106730c5e318fa3673b69588509d983f2 (diff) | |
download | glibc-d94760f944cebf05b239dd0b65c3b40a5577013b.zip glibc-d94760f944cebf05b239dd0b65c3b40a5577013b.tar.gz glibc-d94760f944cebf05b239dd0b65c3b40a5577013b.tar.bz2 |
Fix getttyname on Linux when called for different devices.
If a second call to ttyname is not for the same type of device (e.g.,
serial vs ptty) the prefix of the buffer was wrong. Don't rely on
the previous content, always reinitialize it.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,8 +1,13 @@ 2009-10-29 Ulrich Drepper <drepper@redhat.com> + [BZ #10784] + * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name + of the directory we look at into the static buffer if there is one + at the start of the loop. + [BZ #10789] * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP* - macros. Patch by Philip Prindeville <philipp@redfish-solutions.com>. + macros. Patch by Philip Prindeville <philipp@redfish-solutions.com>. [BZ #10840] * sysdeps/unix/sysv/linux/kernel-features.h: Define |