X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/a23477eb9bd7d1af5f66a171041bf72af932488e..684716b86dc07a97abbde4a8e2fa3a21b2b9c2d5:/uip/slocal.c diff --git a/uip/slocal.c b/uip/slocal.c index 1e044f52..cfbba804 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -27,6 +27,8 @@ #include #include #include +#include "../sbr/lock_file.h" +#include "../sbr/m_mktemp.h" #include #include @@ -1093,9 +1095,9 @@ usr_pipe (int fd_arg, char *cmd, char *pgm, char **vec, int suppress) setpgid ((pid_t) 0, getpid ()); /* put in own process group */ *environ = NULL; - m_putenv ("USER", pw->pw_name); - m_putenv ("HOME", pw->pw_dir); - m_putenv ("SHELL", pw->pw_shell); + setenv("USER", pw->pw_name, 1); + setenv("HOME", pw->pw_dir, 1); + setenv("SHELL", pw->pw_shell, 1); execvp (pgm, vec); _exit (-1);