summaryrefslogtreecommitdiff
path: root/src/posix/posix-cd.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-11-25 00:01:25 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-11-25 00:01:25 +0000
commitd4ed432960c1bf54de426bdb53825c1c1b32112e (patch)
tree56d60d455db64cb63694edcd4525298a506175d7 /src/posix/posix-cd.c
parent02fa8ea0993971a90b0f8d11b882af1e6a86c273 (diff)
downloadexecline-d4ed432960c1bf54de426bdb53825c1c1b32112e.tar.xz
Port to skalibs-2.9.4.0
Diffstat (limited to 'src/posix/posix-cd.c')
-rw-r--r--src/posix/posix-cd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/posix/posix-cd.c b/src/posix/posix-cd.c
index b4d2005..cbeea5b 100644
--- a/src/posix/posix-cd.c
+++ b/src/posix/posix-cd.c
@@ -91,7 +91,7 @@ int main (int argc, char const **argv, char const *const *envp)
size_t sabase = sa.len ;
if (sagetcwd(&sa) < 0) strerr_diefu1sys(111, "getcwd") ;
if (!stralloc_0(&sa)) dienomem() ;
- if (!pathexec_env("OLDPWD", sa.s + sabase)) dienomem() ;
+ if (!env_mexec("OLDPWD", sa.s + sabase)) dienomem() ;
sa.len = sabase ;
}
@@ -114,7 +114,7 @@ int main (int argc, char const **argv, char const *const *envp)
stralloc_free(&sa) ;
sa = tmp ;
}
- if (!pathexec_env("PWD", sa.s)) dienomem() ;
+ if (!env_mexec("PWD", sa.s)) dienomem() ;
#ifdef PATH_MAX
if (sa.len > PATH_MAX && strlen(where) < PATH_MAX && x && *x)
{
@@ -144,7 +144,7 @@ int main (int argc, char const **argv, char const *const *envp)
sa.len = 0 ;
if (sagetcwd(&sa) < 0) strerr_diefu1sys(111, "getcwd") ;
if (!stralloc_0(&sa)) dienomem() ;
- if (!pathexec_env("PWD", sa.s)) dienomem() ;
+ if (!env_mexec("PWD", sa.s)) dienomem() ;
}
if (dopwd)
@@ -154,5 +154,5 @@ int main (int argc, char const **argv, char const *const *envp)
strerr_diefu1sys(111, "write to stdout") ;
}
- xpathexec0(argv) ;
+ xmexec0(argv) ;
}