Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint/xlint Use execvp() instead of execv(). Deals w...
details: https://anonhg.NetBSD.org/src/rev/4d34e256c5ba
branches: trunk
changeset: 494003:4d34e256c5ba
user: wrstuden <wrstuden%NetBSD.org@localhost>
date: Thu Jun 29 02:56:47 2000 +0000
description:
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 fb81b115a1e3 -r 4d34e256c5ba usr.bin/xlint/xlint/xlint.c
--- a/usr.bin/xlint/xlint/xlint.c Thu Jun 29 02:40:37 2000 +0000
+++ b/usr.bin/xlint/xlint/xlint.c Thu Jun 29 02:56:47 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.19 2000/06/29 02:56:47 wrstuden 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.19 2000/06/29 02:56:47 wrstuden 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