hurd: fix ptsname error when called on a non-tty
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 28 May 2020 10:22:36 +0000 (10:22 +0000)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 28 May 2020 10:22:36 +0000 (10:22 +0000)
commitc318f663bd417f0477fdbae077c078b2219109b2
treeae5aeb02cdcc55a00f6ca1e58b73fc941236d051
parent94884ff506d25ddca4f918c2cd40cc748bc5bbb3
hurd: fix ptsname error when called on a non-tty

* sysdeps/mach/hurd/ptsname.c (__ptsname_internal): Replace
not-supported errors from __term_get_peername with ENOTTY.
sysdeps/mach/hurd/ptsname.c