*** checkpassword-0.90/checkpassword.c Sat Dec 23 01:40:46 2000 --- checkpassword.c Tue Mar 27 23:21:46 2001 *************** *** 80,89 **** if (!*stored || strcmp(encrypted,stored)) _exit(1); ! if (prot_gid((int) pw->pw_gid) == -1) _exit(1); ! if (prot_uid((int) pw->pw_uid) == -1) _exit(1); if (chdir(pw->pw_dir) == -1) _exit(111); ! if (!pathexec_env("USER",pw->pw_name)) _exit(111); if (!pathexec_env("HOME",pw->pw_dir)) _exit(111); if (!pathexec_env("SHELL",pw->pw_shell)) _exit(111); --- 80,91 ---- if (!*stored || strcmp(encrypted,stored)) _exit(1); ! // if (prot_gid((int) pw->pw_gid) == -1) _exit(1); ! // if (prot_uid((int) pw->pw_uid) == -1) _exit(1); if (chdir(pw->pw_dir) == -1) _exit(111); ! if (!pathexec_env("FTPWRITE","1")) _exit(111); ! // if (!pathexec_env("UID",pw->pw_uid)) _exit(111); ! // if (!pathexec_env("GID",pw->pw_gid)) _exit(111); if (!pathexec_env("USER",pw->pw_name)) _exit(111); if (!pathexec_env("HOME",pw->pw_dir)) _exit(111); if (!pathexec_env("SHELL",pw->pw_shell)) _exit(111);