Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/apply Use execl() correctly.



details:   https://anonhg.NetBSD.org/src/rev/b12890bcd632
branches:  trunk
changeset: 344094:b12890bcd632
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sat Mar 12 22:28:04 2016 +0000

description:
Use execl() correctly.

diffstat:

 usr.bin/apply/apply.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1179b6e7ca98 -r b12890bcd632 usr.bin/apply/apply.c
--- a/usr.bin/apply/apply.c     Sat Mar 12 22:17:23 2016 +0000
+++ b/usr.bin/apply/apply.c     Sat Mar 12 22:28:04 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: apply.c,v 1.18 2016/03/12 21:20:17 dholland Exp $      */
+/*     $NetBSD: apply.c,v 1.19 2016/03/12 22:28:04 dholland Exp $      */
 
 /*-
  * Copyright (c) 1994
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)apply.c    8.4 (Berkeley) 4/4/94";
 #else
-__RCSID("$NetBSD: apply.c,v 1.18 2016/03/12 21:20:17 dholland Exp $");
+__RCSID("$NetBSD: apply.c,v 1.19 2016/03/12 22:28:04 dholland Exp $");
 #endif
 #endif /* not lint */
 
@@ -234,7 +234,7 @@
        case 0:
                /* child */
                (void)sigsetmask(omask);
-               (void)execl(shell, name, "-c", command, NULL);
+               (void)execl(shell, name, "-c", command, (char *)NULL);
                warn("%s", shell);
                _exit(1);
                /*NOTREACHED*/



Home | Main Index | Thread Index | Old Index