Changeset View
Changeset View
Standalone View
Standalone View
head/contrib/tcp_wrappers/scaffold.c
Show First 20 Lines • Show All 229 Lines • ▼ Show 20 Lines | |||||
/* ARGSUSED */ | /* ARGSUSED */ | ||||
void clean_exit(request) | void clean_exit(request) | ||||
struct request_info *request; | struct request_info *request; | ||||
{ | { | ||||
exit(0); | exit(0); | ||||
} | } | ||||
/* dummy function to intercept the real rfc931() */ | |||||
/* ARGSUSED */ | |||||
void rfc931(request) | |||||
struct request_info *request; | |||||
{ | |||||
strcpy(request->user, unknown); | |||||
} | |||||
/* check_path - examine accessibility */ | /* check_path - examine accessibility */ | ||||
int check_path(path, st) | int check_path(path, st) | ||||
char *path; | char *path; | ||||
struct stat *st; | struct stat *st; | ||||
{ | { | ||||
struct stat stbuf; | struct stat stbuf; | ||||
char buf[BUFSIZ]; | char buf[BUFSIZ]; | ||||
Show All 17 Lines |