From 3306aebb8cf41f6e60d7aba0eef2e94f7ef42574 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Tue, 9 Jan 2018 16:54:44 +1000 Subject: [PATCH] Fix for openpty in SunOS code --- src/os/sunos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/sunos.c b/src/os/sunos.c index 6e4a62e..8389cea 100644 --- a/src/os/sunos.c +++ b/src/os/sunos.c @@ -22,7 +22,7 @@ int openpty(int *amaster, int *aslave, char *name, void *termp, void *winp) { strcpy(name, pname); } - pts = open(name, O_RDWR); + pts = open(pname, O_RDWR); ioctl(pts, I_PUSH, "ptem"); ioctl(pts, I_PUSH, "ldterm"); ioctl(pts, I_PUSH, "ttcompat");