summaryrefslogtreecommitdiff
path: root/src/libstddjb/pathexec_run.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-12-22 16:44:47 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-12-22 16:44:47 +0000
commita8e40d0287f05f6e444035431b1cc7b340fe8d79 (patch)
tree3d34decfcdfed87f14ab6b467dfd8ca3c7add471 /src/libstddjb/pathexec_run.c
parent8cd0d07171f8b32553ef0c6936fd5737adcb4bab (diff)
downloadskalibs-a8e40d0287f05f6e444035431b1cc7b340fe8d79.tar.xz
Deprecate env_get
Diffstat (limited to 'src/libstddjb/pathexec_run.c')
-rw-r--r--src/libstddjb/pathexec_run.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstddjb/pathexec_run.c b/src/libstddjb/pathexec_run.c
index ff3211d..5888ba2 100644
--- a/src/libstddjb/pathexec_run.c
+++ b/src/libstddjb/pathexec_run.c
@@ -1,13 +1,13 @@
/* ISC license. */
+#include <stdlib.h>
#include <skalibs/config.h>
-#include <skalibs/env.h>
#include <skalibs/posixplz.h>
#include <skalibs/djbunix.h>
void pathexec_run (char const *file, char const *const *argv, char const *const *envp)
{
- char const *path = env_get("PATH") ;
+ char const *path = getenv("PATH") ;
if (!path) path = SKALIBS_DEFAULTPATH ;
execvep(file, argv, envp, path) ;
}