diff options
author | Rich Felker <dalias@aerifal.cx> | 2015-01-12 00:59:49 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2015-01-12 00:59:49 -0500 |
commit | 9772eadba8f8b32a1744c4df5048d70c567f6082 (patch) | |
tree | a84dc010cc286e3c63884c1666679bb5885e74d2 /src/network/in6addr_any.c | |
parent | 699d4532f6a8f792271c7f46608e2505ca3afc21 (diff) | |
download | musl-9772eadba8f8b32a1744c4df5048d70c567f6082.tar.gz musl-9772eadba8f8b32a1744c4df5048d70c567f6082.tar.xz musl-9772eadba8f8b32a1744c4df5048d70c567f6082.zip |
simplify ctermid
opening /dev/tty then using ttyname_r on it does not produce a canonical terminal name; it simply yields "/dev/tty". it would be possible to make ctermid determine the actual controlling terminal device via field 7 of /proc/self/stat, but doing so would introduce a buffer overflow into applications built with L_ctermid==9, which glibc defines, adversely affecting the quality of ABI compat.
Diffstat (limited to 'src/network/in6addr_any.c')
0 files changed, 0 insertions, 0 deletions