*** /usr/src/usr.sbin/sliplogin/sliplogin.c 1996/01/06 07:19:55 1.3.4.1 --- /usr/src/usr.sbin/sliplogin/sliplogin.c 1996/04/24 20:20:00 1.3.4.2 *************** *** 88,93 **** --- 88,100 ---- #include #include "pathnames.h" + extern char **environ; + + static char *restricted_environ[] = { + "PATH=" _PATH_STDPATH, + NULL + }; + int unit; int slip_mode; speed_t speed; *************** *** 123,128 **** --- 130,137 ---- char user[16]; char buf[128]; int i, j, n; + + environ = restricted_environ; /* minimal protection for system() */ (void)strcpy(loginname, name); if ((fp = fopen(_PATH_ACCESS, "r")) == NULL) {