verify that ttyname refers to the same file as the fd
authorSzabolcs Nagy <nsz@port70.net>
Sat, 20 Aug 2016 19:04:31 +0000 (21:04 +0200)
committerRich Felker <dalias@aerifal.cx>
Tue, 30 Aug 2016 19:59:50 +0000 (15:59 -0400)
commit0a950dcf15bb9f7274c804dca490e9e20e475f3e
tree593648d221561d6f98d25b6fadf3949580f92eda
parent2b41959b59e3dfd70cb4b592ffb2d97b47584aaa
verify that ttyname refers to the same file as the fd

linux containers use separate mount namespace so the /proc
symlink might not point to the right device if the fd was
opened in the parent namespace, in this case return ENOENT.
src/unistd/ttyname_r.c