Subject: lib/19176: execl called with too few arguments
To: None <gnats-bugs@gnats.netbsd.org>
From: None <o.vd.linden@quicknet.nl>
List: netbsd-bugs
Date: 11/26/2002 17:45:03
>Number: 19176
>Category: lib
>Synopsis: last param of execl should be NULL
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Nov 26 08:46:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Onno van der Linden
>Release: NetBSD 1.6K
>Organization:
>Environment:
System: NetBSD sheep 1.6K NetBSD 1.6K (SHEEP) #1: Thu Nov 14 20:57:09 MET 2002 onno@sheep:/usr/src/sys/arch/i386/compile/SHEEP i386
Architecture: i386
Machine: i386
>Description:
utmpx.c:utmp_update() has an execl() call without NULL as its last
argument. This caused an error message from /usr/libexec/utmp_update
when I started a newly compiled xterm-170
>How-To-Repeat:
Use the source
>Fix:
*** /usr/src/lib/libc/gen/utmpx.c.orig Tue Nov 26 17:39:01 2002
--- /usr/src/lib/libc/gen/utmpx.c Tue Nov 26 17:38:36 2002
***************
*** 278,282 ****
case 0:
(void)execl(_PATH_UTMP_UPDATE,
! strrchr(_PATH_UTMP_UPDATE, '/') + 1, buf);
exit(1);
/*NOTREACHED*/
--- 278,282 ----
case 0:
(void)execl(_PATH_UTMP_UPDATE,
! strrchr(_PATH_UTMP_UPDATE, '/') + 1, buf, NULL);
exit(1);
/*NOTREACHED*/
>Release-Note:
>Audit-Trail:
>Unformatted: