From: grzegol Date: Sat, 2 Aug 2003 21:22:03 +0000 (+0000) Subject: - updated X-Git-Tag: auto/ac/expect-5_39_0-2~3 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fexpect.git;a=commitdiff_plain;h=8fad80868f3afd024da3c484c278352d685c7000 - updated Changed files: expect-pty.patch -> 1.2 --- diff --git a/expect-pty.patch b/expect-pty.patch index 495015b..655f3a1 100644 --- a/expect-pty.patch +++ b/expect-pty.patch @@ -16,8 +16,8 @@ #else if ((master = open("/dev/ptmx", O_RDWR)) == -1) return(-1); #endif -- if ((slave_name = (char *)ptsname(master)) == NULL || unlockpt(master)) { -+ if (slave_name == NULL || unlockpt(master)) { +- if ((slave_name = (char *)ptsname(master)) == NULL) { ++ if (slave_name == NULL) { close(master); return(-1); } else if (grantpt(master)) {