openbsd-ports/sysutils/LPRng/patches/patch-src_common_lpq_c
2010-05-24 10:20:37 +00:00

13 lines
421 B
Plaintext

$OpenBSD: patch-src_common_lpq_c,v 1.1 2010/05/24 10:20:37 espie Exp $
--- src/common/lpq.c.orig Mon May 24 12:18:41 2010
+++ src/common/lpq.c Mon May 24 12:19:35 2010
@@ -448,7 +448,7 @@ void Term_clear()
if( (pid = dofork(0)) == 0 ){
setuid( OriginalRUID );
close_on_exec(3);
- execl(CLEAR,0);
+ execl(CLEAR, CLEAR, (void *)0);
exit(1);
} else if( pid < 0 ){
LOGERR_DIE(LOG_ERR) _("fork() failed") );