openbsd-ports/misc/screen/patches/patch-attacher_c
jolan 7c2d12a5a4 - add license comment above PERMIT_* lines
- add includes so openpty is not implicitly declared
- use (void*) NULL in execl to make sure it 64-bit where it needs to be

OK brad (maintainer)
2003-10-14 23:05:28 +00:00

13 lines
500 B
Plaintext

$OpenBSD: patch-attacher_c,v 1.1 2003/10/14 23:05:28 jolan Exp $
--- attacher.c.orig 2003-09-08 09:24:48.000000000 -0500
+++ attacher.c 2003-10-14 14:10:14.000000000 -0500
@@ -676,7 +676,7 @@ LockTerminal()
setuid(real_uid); /* this should be done already */
#endif
closeallfiles(0); /* important: /etc/shadow may be open */
- execl(prg, "SCREEN-LOCK", NULL);
+ execl(prg, "SCREEN-LOCK", (void*)NULL);
exit(errno);
}
if (pid == -1)