diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-07 13:23:59 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-07 13:23:59 +0100 |
commit | 27a61babf89122aeb64d52f4ea8f6f068b928da4 (patch) | |
tree | 56cc72dcfb76f622af8103ed350c61f432d5f686 /sys-apps/tcp-wrappers/files | |
parent | bbdc49d5ccd04563006a608c87c870413f75057e (diff) |
gentoo auto-resync : 07:10:2022 - 13:23:59
Diffstat (limited to 'sys-apps/tcp-wrappers/files')
-rw-r--r-- | sys-apps/tcp-wrappers/files/tcp-wrappers-7.6-redhat-bug11881.patch | 35 | ||||
-rw-r--r-- | sys-apps/tcp-wrappers/files/tcp-wrappers-7.6.28-no-external-malloc.patch | 15 |
2 files changed, 0 insertions, 50 deletions
diff --git a/sys-apps/tcp-wrappers/files/tcp-wrappers-7.6-redhat-bug11881.patch b/sys-apps/tcp-wrappers/files/tcp-wrappers-7.6-redhat-bug11881.patch deleted file mode 100644 index 4a6847621c57..000000000000 --- a/sys-apps/tcp-wrappers/files/tcp-wrappers-7.6-redhat-bug11881.patch +++ /dev/null @@ -1,35 +0,0 @@ ---- tcp_wrappers_7.6/tcpd.c.bug11881 -+++ tcp_wrappers_7.6/tcpd.c -@@ -60,10 +60,10 @@ - */ - - if (argv[0][0] == '/') { -- strcpy(path, argv[0]); -+ strncpy(path, argv[0], sizeof(path)); - argv[0] = strrchr(argv[0], '/') + 1; - } else { -- sprintf(path, "%s/%s", REAL_DAEMON_DIR, argv[0]); -+ snprintf(path, sizeof(path), "%s/%s", REAL_DAEMON_DIR, argv[0]); - } - - /* ---- tcp_wrappers_7.6/eval.c.bug11881 -+++ tcp_wrappers_7.6/eval.c -@@ -111,7 +111,7 @@ - return (hostinfo); - #endif - if (STR_NE(eval_user(request), unknown)) { -- sprintf(both, "%s@%s", request->user, hostinfo); -+ snprintf(both, sizeof(both), "%s@%s", request->user, hostinfo); - return (both); - } else { - return (hostinfo); -@@ -128,7 +128,7 @@ - char *daemon = eval_daemon(request); - - if (STR_NE(host, unknown)) { -- sprintf(both, "%s@%s", daemon, host); -+ snprintf(both, sizeof(both), "%s@%s", daemon, host); - return (both); - } else { - return (daemon); diff --git a/sys-apps/tcp-wrappers/files/tcp-wrappers-7.6.28-no-external-malloc.patch b/sys-apps/tcp-wrappers/files/tcp-wrappers-7.6.28-no-external-malloc.patch deleted file mode 100644 index eebd600aab24..000000000000 --- a/sys-apps/tcp-wrappers/files/tcp-wrappers-7.6.28-no-external-malloc.patch +++ /dev/null @@ -1,15 +0,0 @@ -We use malloc() from stdlib.h. - ---- a/scaffold.c -+++ b/scaffold.c -@@ -26,10 +26,6 @@ static char sccs_id[] = "@(#) scaffold.c 1.6 97/03/21 19:27:24"; - #define INADDR_NONE (-1) /* XXX should be 0xffffffff */ - #endif - --#ifndef INET6 --extern char *malloc(); --#endif -- - /* Application-specific. */ - - #include "tcpd.h" |