diff options
author | Qing He <qing.he@intel.com> | 2010-08-11 10:04:25 +0800 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-13 13:36:02 +0100 |
commit | 6ffc4f2e04f2d405b14f198220a3613d386489e7 (patch) | |
tree | 1afb979e272a3071811e290cbb9f9c79b3a437eb /meta/packages/tcp-wrappers/tcp-wrappers-7.6/sig_fix.patch | |
parent | 199177bc29ac6f476e1001b66c58ec59fd01f546 (diff) | |
download | poky-6ffc4f2e04f2d405b14f198220a3613d386489e7.tar.gz |
tcp-wrappers: add new package
version 7.6
based on tcp-wrappers recipe of openembedded
changes from openembedded version:
- set -DUSE_GETDOMAIN in NETGROUP to fix build error
- install libwrap into ${base_libdir}, since it's required by
some essential components (e.g. portmap is in ${base_sbindir})
- distribute libwrap.a as well in libwrap-dev
Signed-off-by: Qing He <qing.he@intel.com>
Diffstat (limited to 'meta/packages/tcp-wrappers/tcp-wrappers-7.6/sig_fix.patch')
-rw-r--r-- | meta/packages/tcp-wrappers/tcp-wrappers-7.6/sig_fix.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta/packages/tcp-wrappers/tcp-wrappers-7.6/sig_fix.patch b/meta/packages/tcp-wrappers/tcp-wrappers-7.6/sig_fix.patch new file mode 100644 index 0000000000..f286605bfd --- /dev/null +++ b/meta/packages/tcp-wrappers/tcp-wrappers-7.6/sig_fix.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | * Mon Feb 10 2003 Harald Hoyer <harald@redhat.de> 7.6-29 | ||
2 | - added security patch tcp_wrappers-7.6-sig.patch | ||
3 | |||
4 | --- tcp_wrappers_7.6/hosts_access.c.sig 2003-02-10 16:18:31.000000000 +0100 | ||
5 | +++ tcp_wrappers_7.6/hosts_access.c 2003-02-10 16:50:38.000000000 +0100 | ||
6 | @@ -66,6 +66,7 @@ | ||
7 | |||
8 | #define YES 1 | ||
9 | #define NO 0 | ||
10 | +#define ERR -1 | ||
11 | |||
12 | /* | ||
13 | * These variables are globally visible so that they can be redirected in | ||
14 | @@ -129,9 +129,9 @@ | ||
15 | return (verdict == AC_PERMIT); | ||
16 | if (table_match(hosts_allow_table, request)) | ||
17 | return (YES); | ||
18 | - if (table_match(hosts_deny_table, request)) | ||
19 | - return (NO); | ||
20 | - return (YES); | ||
21 | + if (table_match(hosts_deny_table, request) == NO) | ||
22 | + return (YES); | ||
23 | + return (NO); | ||
24 | } | ||
25 | |||
26 | /* table_match - match table entries with (daemon, client) pair */ | ||
27 | @@ -175,6 +175,7 @@ | ||
28 | (void) fclose(fp); | ||
29 | } else if (errno != ENOENT) { | ||
30 | tcpd_warn("cannot open %s: %m", table); | ||
31 | + match = ERR; | ||
32 | } | ||
33 | if (match) { | ||
34 | if (hosts_access_verbose > 1) | ||