summaryrefslogtreecommitdiff
path: root/src/execline/envfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/execline/envfile.c')
-rw-r--r--src/execline/envfile.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/execline/envfile.c b/src/execline/envfile.c
index aff5964..555e464 100644
--- a/src/execline/envfile.c
+++ b/src/execline/envfile.c
@@ -13,6 +13,7 @@
#include <skalibs/env.h>
#include <skalibs/stralloc.h>
#include <skalibs/djbunix.h>
+#include <skalibs/exec.h>
#define USAGE "envfile [ -i | -I ] file prog..."
#define dieusage() strerr_dieusage(100, USAGE)
@@ -132,7 +133,7 @@ static inline void parse_config (char const *file, buffer *b, stralloc *sa)
}
}
-int main (int argc, char const *const *argv, char const *const *envp)
+int main (int argc, char const *const *argv)
{
stralloc modif = STRALLOC_ZERO ;
int fd ;
@@ -179,5 +180,5 @@ int main (int argc, char const *const *argv, char const *const *envp)
parse_config(name, &b, &modif) ;
fd_close(fd) ;
}
- xpathexec_r(argv + 1, envp, env_len(envp), modif.s, modif.len) ;
+ xmexec_m(argv + 1, modif.s, modif.len) ;
}