Gbp-Pq: Name rfc931.diff
This commit is contained in:
Marco d'Itri 2022-05-14 02:57:49 +08:00 committed by openKylinBot
parent 7ed6fd9277
commit 4f684e1b4a
2 changed files with 14 additions and 3 deletions

View File

@ -238,10 +238,17 @@ struct request_info *request;
/* ARGSUSED */
void rfc931(request)
struct request_info *request;
void rfc931(rmt_sin, our_sin, dest)
#ifdef INET6
struct sockaddr *rmt_sin;
struct sockaddr *our_sin;
#else
struct sockaddr_in *rmt_sin;
struct sockaddr_in *our_sin;
#endif
char *dest;
{
strcpy(request->user, unknown);
strcpy(dest, unknown);
}
/* check_path - examine accessibility */

4
tcpd.h
View File

@ -93,7 +93,11 @@ extern int hosts_access(struct request_info *request); /* access control */
extern void shell_cmd(char *); /* execute shell command */
extern char *percent_x(char *, int, char *, struct request_info *);
/* do %<char> expansion */
#ifdef INET6
extern void rfc931(struct sockaddr *, struct sockaddr *, char *);
#else
extern void rfc931(struct sockaddr_in *, struct sockaddr_in *, char *);
#endif
/* client name from RFC 931 daemon */
extern void clean_exit(struct request_info *); /* clean up and exit */
extern void refuse(struct request_info *); /* clean up and exit */