Return to auth.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.35, 2002/03/01 13:12:10 | version 1.36, 2002/03/15 11:00:38 | ||
---|---|---|---|
|
|
||
pw->pw_name, shell); | pw->pw_name, shell); | ||
return 0; | return 0; | ||
} | } | ||
if (!((st.st_mode & S_IFREG) && (st.st_mode & (S_IXOTH|S_IXUSR|S_IXGRP)))) { | if (S_ISREG(st.st_mode) == 0 || | ||
(st.st_mode & (S_IXOTH|S_IXUSR|S_IXGRP)) == 0) { | |||
log("User %.100s not allowed because shell %.100s is not executable", | log("User %.100s not allowed because shell %.100s is not executable", | ||
pw->pw_name, shell); | pw->pw_name, shell); | ||
return 0; | return 0; |