summaryrefslogtreecommitdiff
path: root/usr/src/lib/libnsl/saf/doconfig.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libnsl/saf/doconfig.c')
-rw-r--r--usr/src/lib/libnsl/saf/doconfig.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/usr/src/lib/libnsl/saf/doconfig.c b/usr/src/lib/libnsl/saf/doconfig.c
index db2b6c2bd7..66a788e885 100644
--- a/usr/src/lib/libnsl/saf/doconfig.c
+++ b/usr/src/lib/libnsl/saf/doconfig.c
@@ -20,15 +20,15 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
+
#include "mt.h"
#include <stdio.h>
#include <string.h>
@@ -50,8 +50,6 @@
#define NOWAIT 0
#define WAIT 1
-extern char **_environ;
-
static char *eatwhite(char *);
static int doassign(char *);
static int dopush(int, char *);
@@ -480,8 +478,7 @@ dorun(char *p, int waitflg)
/* stderr */
if (dup(0) != 2)
return (-1);
- (void) execle("/usr/bin/sh", "sh", "-c",
- p, 0, _environ);
+ (void) execl("/usr/bin/sh", "sh", "-c", p, NULL);
/*
* if we get here, there is a problem - remember that
* this is the child