SunOS fixes

This commit is contained in:
Andrew Pamment
2018-01-09 18:07:41 +10:00
parent 3306aebb8c
commit f5e27ce4c3
2 changed files with 3 additions and 1 deletions

View File

@@ -58,7 +58,7 @@ int forkpty(int *amaster, char *name, void *termp, void *winp) {
if (name != NULL) {
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");