Branch: Tag:

2020-01-22

2020-01-22 09:36:16 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio: Fixed some inverted tests in my_openpty().

2570: Inside #if !defined(HAVE_OPENPTY) && defined(HAVE_PTSNAME) && defined(HAVE_POSIX_OPENPT)
   int s;    char *sname;    if (m < 0) return -1; -  if (grantpt(m) && unlockpt(m) && (sname = ptsname(m))) { +  if (!grantpt(m) && !unlockpt(m) && (sname = ptsname(m))) {    int s = open(sname, O_RDWR | O_NOCTTY);    if (s >= 0) {    if (master) *master = m;