about summary refs log tree commit diff
path: root/src/posix/posix-cd.c
diff options
context:
space:
mode:
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) ;
 }