diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-01 19:09:11 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-01 19:09:57 +0100 |
commit | d62ee7eaf2ba025c3f64b2d4e10dc7cec4637612 (patch) | |
tree | f36fe3008f36ff75cbdd31b630f8f13f1f205ebb /meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/rfc931.diff | |
parent | caab7fc509bf27706ff3248689f6afd04225cfda (diff) | |
download | poky-d62ee7eaf2ba025c3f64b2d4e10dc7cec4637612.tar.gz |
packages: Separate out most of the remaining packages into recipes
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/rfc931.diff')
-rw-r--r-- | meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/rfc931.diff | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/rfc931.diff b/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/rfc931.diff new file mode 100644 index 0000000000..a926d0edfd --- /dev/null +++ b/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/rfc931.diff | |||
@@ -0,0 +1,39 @@ | |||
1 | diff -ruNp tcp_wrappers_7.6.orig/scaffold.c tcp_wrappers_7.6/scaffold.c | ||
2 | --- tcp_wrappers_7.6.orig/scaffold.c 2005-03-09 18:22:04.000000000 +0100 | ||
3 | +++ tcp_wrappers_7.6/scaffold.c 2005-03-09 18:20:47.000000000 +0100 | ||
4 | @@ -237,10 +237,17 @@ struct request_info *request; | ||
5 | |||
6 | /* ARGSUSED */ | ||
7 | |||
8 | -void rfc931(request) | ||
9 | -struct request_info *request; | ||
10 | +void rfc931(rmt_sin, our_sin, dest) | ||
11 | +#ifdef INET6 | ||
12 | +struct sockaddr *rmt_sin; | ||
13 | +struct sockaddr *our_sin; | ||
14 | +#else | ||
15 | +struct sockaddr_in *rmt_sin; | ||
16 | +struct sockaddr_in *our_sin; | ||
17 | +#endif | ||
18 | +char *dest; | ||
19 | { | ||
20 | - strcpy(request->user, unknown); | ||
21 | + strcpy(dest, unknown); | ||
22 | } | ||
23 | |||
24 | /* check_path - examine accessibility */ | ||
25 | diff -ruNp tcp_wrappers_7.6.orig/tcpd.h tcp_wrappers_7.6/tcpd.h | ||
26 | --- tcp_wrappers_7.6.orig/tcpd.h 2005-03-09 18:22:04.000000000 +0100 | ||
27 | +++ tcp_wrappers_7.6/tcpd.h 2005-03-09 18:21:23.000000000 +0100 | ||
28 | @@ -83,7 +83,11 @@ extern int hosts_access(struct request_i | ||
29 | extern void shell_cmd(char *); /* execute shell command */ | ||
30 | extern char *percent_x(char *, int, char *, struct request_info *); | ||
31 | /* do %<char> expansion */ | ||
32 | +#ifdef INET6 | ||
33 | extern void rfc931(struct sockaddr *, struct sockaddr *, char *); | ||
34 | +#else | ||
35 | +extern void rfc931(struct sockaddr_in *, struct sockaddr_in *, char *); | ||
36 | +#endif | ||
37 | /* client name from RFC 931 daemon */ | ||
38 | extern void clean_exit(struct request_info *); /* clean up and exit */ | ||
39 | extern void refuse(struct request_info *); /* clean up and exit */ | ||