summaryrefslogtreecommitdiffstats
path: root/crypto/heimdal/lib/roken/simple_exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/heimdal/lib/roken/simple_exec.c')
-rw-r--r--crypto/heimdal/lib/roken/simple_exec.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/crypto/heimdal/lib/roken/simple_exec.c b/crypto/heimdal/lib/roken/simple_exec.c
index 4aa22fa..c7e22d9 100644
--- a/crypto/heimdal/lib/roken/simple_exec.c
+++ b/crypto/heimdal/lib/roken/simple_exec.c
@@ -33,7 +33,7 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
-RCSID("$Id: simple_exec.c,v 1.7 2000/01/09 10:58:51 assar Exp $");
+RCSID("$Id: simple_exec.c,v 1.8 2000/11/05 16:41:06 joda Exp $");
#endif
#include <stdarg.h>
@@ -148,3 +148,20 @@ simple_execle(const char *file, ... /* ,char *const envp[] */)
free(argv);
return ret;
}
+
+int
+simple_execl(const char *file, ...)
+{
+ va_list ap;
+ char **argv;
+ int ret;
+
+ va_start(ap, file);
+ argv = vstrcollect(&ap);
+ va_end(ap);
+ if(argv == NULL)
+ return -1;
+ ret = simple_execve(file, argv, environ);
+ free(argv);
+ return ret;
+}
OpenPOWER on IntegriCloud