[Glibc-bsd-commits] r5828 - trunk/glibc-ports/kfreebsd
aurel32 at alioth.debian.org
aurel32 at alioth.debian.org
Mon Nov 2 19:42:44 UTC 2015
Author: aurel32
Date: 2015-11-02 19:42:44 +0000 (Mon, 02 Nov 2015)
New Revision: 5828
Modified:
trunk/glibc-ports/kfreebsd/ptsname.c
Log:
ptsname should return ENOTTY for a non-pseudoterminal master device
Modified: trunk/glibc-ports/kfreebsd/ptsname.c
===================================================================
--- trunk/glibc-ports/kfreebsd/ptsname.c 2015-11-02 12:55:21 UTC (rev 5827)
+++ trunk/glibc-ports/kfreebsd/ptsname.c 2015-11-02 19:42:44 UTC (rev 5828)
@@ -70,7 +70,8 @@
/* Check if FD really is a master pseudo terminal. */
if (0 != __isptymaster(fd))
{
- return errno;
+ __set_errno (ENOTTY);
+ return ENOTTY;
}
if (buflen < sizeof (_PATH_DEV) + 5) /* "/dev/" + "pts/" */
More information about the Glibc-bsd-commits
mailing list