diff options
author | Khem Raj <raj.khem@gmail.com> | 2010-05-26 09:53:08 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2010-05-26 09:56:42 -0700 |
commit | 5a12f03c680c41791f7036384fa821fb77991d33 (patch) | |
tree | 29db9b97976fa6e4fa6cfe27587386dbfcef51e2 /recipes/tcp-wrappers/tcp-wrappers-7.6/sig_fix.patch | |
parent | fea59d54134947c29e1a8967dd1f4e98d3062b81 (diff) |
tcp-wrappers: Add .patch extention to patch files.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes/tcp-wrappers/tcp-wrappers-7.6/sig_fix.patch')
-rw-r--r-- | recipes/tcp-wrappers/tcp-wrappers-7.6/sig_fix.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/recipes/tcp-wrappers/tcp-wrappers-7.6/sig_fix.patch b/recipes/tcp-wrappers/tcp-wrappers-7.6/sig_fix.patch new file mode 100644 index 0000000000..f286605bfd --- /dev/null +++ b/recipes/tcp-wrappers/tcp-wrappers-7.6/sig_fix.patch @@ -0,0 +1,34 @@ +* Mon Feb 10 2003 Harald Hoyer <harald@redhat.de> 7.6-29 +- added security patch tcp_wrappers-7.6-sig.patch + +--- tcp_wrappers_7.6/hosts_access.c.sig 2003-02-10 16:18:31.000000000 +0100 ++++ tcp_wrappers_7.6/hosts_access.c 2003-02-10 16:50:38.000000000 +0100 +@@ -66,6 +66,7 @@ + + #define YES 1 + #define NO 0 ++#define ERR -1 + + /* + * These variables are globally visible so that they can be redirected in +@@ -129,9 +129,9 @@ + return (verdict == AC_PERMIT); + if (table_match(hosts_allow_table, request)) + return (YES); +- if (table_match(hosts_deny_table, request)) +- return (NO); +- return (YES); ++ if (table_match(hosts_deny_table, request) == NO) ++ return (YES); ++ return (NO); + } + + /* table_match - match table entries with (daemon, client) pair */ +@@ -175,6 +175,7 @@ + (void) fclose(fp); + } else if (errno != ENOENT) { + tcpd_warn("cannot open %s: %m", table); ++ match = ERR; + } + if (match) { + if (hosts_access_verbose > 1) |