summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-09-06 21:39:02 -0700
committerKhem Raj <raj.khem@gmail.com>2022-09-07 16:44:54 -0700
commit536281a175cc7870feb2d09aed9f112c04d0ffe8 (patch)
tree18f3386cc7f59fe8efe23a7617cb25ea8995de6b
parent4b80488e3bd9cfeba8791eaf84086e36d60d2608 (diff)
downloadmeta-openembedded-536281a175cc7870feb2d09aed9f112c04d0ffe8.tar.gz
netkit-telnet: Add time.h from strftime/time prototypes
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-networking/recipes-netkit/netkit-telnet/files/0001-utility-Include-time.h-form-time-and-strftime-protot.patch27
-rw-r--r--meta-networking/recipes-netkit/netkit-telnet/netkit-telnet_0.17.bb1
2 files changed, 28 insertions, 0 deletions
diff --git a/meta-networking/recipes-netkit/netkit-telnet/files/0001-utility-Include-time.h-form-time-and-strftime-protot.patch b/meta-networking/recipes-netkit/netkit-telnet/files/0001-utility-Include-time.h-form-time-and-strftime-protot.patch
new file mode 100644
index 000000000..a5e634caa
--- /dev/null
+++ b/meta-networking/recipes-netkit/netkit-telnet/files/0001-utility-Include-time.h-form-time-and-strftime-protot.patch
@@ -0,0 +1,27 @@
1From 23b068e695881be0e8205ecccadf775fc3d5889d Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 6 Sep 2022 21:25:50 -0700
4Subject: [PATCH] utility: Include time.h form time() and strftime() prototypes
5
6Upstream-Status: Pending
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10 telnetd/utility.c | 1 +
11 1 file changed, 1 insertion(+)
12
13diff --git a/telnetd/utility.c b/telnetd/utility.c
14index 4811f14..b539777 100644
15--- a/telnetd/utility.c
16+++ b/telnetd/utility.c
17@@ -40,6 +40,7 @@ char util_rcsid[] =
18 #define PRINTOPTIONS
19
20 #include <stdarg.h>
21+#include <time.h> /* for time() anf strftime() */
22 #include <sys/utsname.h>
23
24 #ifdef AUTHENTICATE
25--
262.37.3
27
diff --git a/meta-networking/recipes-netkit/netkit-telnet/netkit-telnet_0.17.bb b/meta-networking/recipes-netkit/netkit-telnet/netkit-telnet_0.17.bb
index 56860ea09..6d60c6fbb 100644
--- a/meta-networking/recipes-netkit/netkit-telnet/netkit-telnet_0.17.bb
+++ b/meta-networking/recipes-netkit/netkit-telnet/netkit-telnet_0.17.bb
@@ -14,6 +14,7 @@ SRC_URI = "${DEBIAN_MIRROR}/main/n/netkit-telnet/netkit-telnet_${PV}.orig.tar.gz
14 file://0001-telnet-telnetd-Fix-deadlock-on-cleanup.patch \ 14 file://0001-telnet-telnetd-Fix-deadlock-on-cleanup.patch \
15 file://CVE-2020-10188.patch \ 15 file://CVE-2020-10188.patch \
16 file://0001-telnetd-utility.c-Fix-buffer-overflow-in-netoprintf.patch \ 16 file://0001-telnetd-utility.c-Fix-buffer-overflow-in-netoprintf.patch \
17 file://0001-utility-Include-time.h-form-time-and-strftime-protot.patch \
17 " 18 "
18 19
19UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/n/netkit-telnet/" 20UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/n/netkit-telnet/"