diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/rc/exec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/rc/exec.c b/src/cmd/rc/exec.c index e9fb4440..e1791542 100644 --- a/src/cmd/rc/exec.c +++ b/src/cmd/rc/exec.c @@ -1,9 +1,9 @@ #include <u.h> #include <signal.h> -#include <sys/ioctl.h> #if defined(PLAN9PORT) && defined(__sun__) # define BSD_COMP /* sigh. for TIOCNOTTY */ #endif +#include <sys/ioctl.h> #include "rc.h" #include "getflags.h" #include "exec.h" @@ -115,7 +115,7 @@ main(int argc, char *argv[]) int i; /* needed for rcmain later */ - setenv("PLAN9", unsharp("#9"), 1); + putenv("PLAN9", unsharp("#9")); argc=getflags(argc, argv, "srdiIlxepvVc:1m:1[command]", 1); if(argc==-1) usage("[file [arg ...]]"); |