Source-Changes-HG archive

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

[src/netbsd-1-5]: src/usr.bin/xlint/xlint Pull up rev. 1.19:



details:   https://anonhg.NetBSD.org/src/rev/1ece0a6d073e
branches:  netbsd-1-5
changeset: 488333:1ece0a6d073e
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Jun 29 23:56:58 2000 +0000

description:
Pull up rev. 1.19:
Use execvp() instead of execv(). Deals with the case where CC, the compiler,
is not a full path. For instance, "cc".

diffstat:

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

diffs (27 lines):

diff -r 13b12df0da8e -r 1ece0a6d073e usr.bin/xlint/xlint/xlint.c
--- a/usr.bin/xlint/xlint/xlint.c       Thu Jun 29 23:55:22 2000 +0000
+++ b/usr.bin/xlint/xlint/xlint.c       Thu Jun 29 23:56:58 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xlint.c,v 1.18 2000/06/14 06:49:24 cgd Exp $ */
+/* $NetBSD: xlint.c,v 1.18.2.1 2000/06/29 23:56:58 thorpej Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -34,7 +34,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: xlint.c,v 1.18 2000/06/14 06:49:24 cgd Exp $");
+__RCSID("$NetBSD: xlint.c,v 1.18.2.1 2000/06/29 23:56:58 thorpej Exp $");
 #endif
 
 #include <sys/param.h>
@@ -686,7 +686,7 @@
                        dup2(fdout, STDOUT_FILENO);
                        close(fdout);
                }
-               (void)execv(path, args);
+               (void)execvp(path, args);
                warn("cannot exec %s", path);
                _exit(1);
                /* NOTREACHED */



Home | Main Index | Thread Index | Old Index