Changeset View
Changeset View
Standalone View
Standalone View
libexec/ftpd/ftpd.c
| Show First 20 Lines • Show All 1,037 Lines • ▼ Show 20 Lines | while ((cp = getusershell()) != NULL) | ||||
| if (strcmp(cp, shell) == 0) | if (strcmp(cp, shell) == 0) | ||||
| break; | break; | ||||
| endusershell(); | endusershell(); | ||||
| if (cp == NULL || | if (cp == NULL || | ||||
| (checkuser(_PATH_FTPUSERS, name, 1, NULL, &ecode) || | (checkuser(_PATH_FTPUSERS, name, 1, NULL, &ecode) || | ||||
| (ecode != 0 && ecode != ENOENT))) { | (ecode != 0 && ecode != ENOENT))) { | ||||
| reply(530, "User %s access denied.", name); | reply(530, "User %s access denied.", name); | ||||
| BLACKLIST_NOTIFY(BLACKLIST_AUTH_FAIL, STDIN_FILENO, "Access denied"); | |||||
| if (logging) | if (logging) | ||||
| syslog(LOG_NOTICE, | syslog(LOG_NOTICE, | ||||
| "FTP LOGIN REFUSED FROM %s, %s", | "FTP LOGIN REFUSED FROM %s, %s", | ||||
| remotehost, name); | remotehost, name); | ||||
| pw = NULL; | pw = NULL; | ||||
| return; | return; | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 2,393 Lines • Show Last 20 Lines | |||||