Fix for openpty in SunOS code

This commit is contained in:
Andrew Pamment 2018-01-09 16:54:44 +10:00
parent 24994fb150
commit 3306aebb8c

View File

@ -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");