mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 02:31:27 +00:00
uw-imap: Avoid programs using gets()
Included needed header for isdigit() Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -0,0 +1,38 @@
|
|||||||
|
From f92becaf97be16a28013693cd99bac92c54074f2 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Khem Raj <raj.khem@gmail.com>
|
||||||
|
Date: Wed, 7 Sep 2022 13:54:58 -0700
|
||||||
|
Subject: [PATCH 1/2] Do not build mtest
|
||||||
|
|
||||||
|
its a test utility which is not generally used. We need to disable it
|
||||||
|
because it uses gets() function which is not available in glibc, if we
|
||||||
|
want to use it then port it to use something like fgets
|
||||||
|
|
||||||
|
Upstream-Status: Pending
|
||||||
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||||
|
---
|
||||||
|
Makefile | 2 --
|
||||||
|
1 file changed, 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/Makefile b/Makefile
|
||||||
|
index cf6d405..1e2d0fb 100644
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -669,7 +669,6 @@ an ua:
|
||||||
|
$(TOOLS)/$@ "$(LN)" src/ansilib c-client
|
||||||
|
$(TOOLS)/$@ "$(LN)" src/charset c-client
|
||||||
|
$(TOOLS)/$@ "$(LN)" src/osdep/$(SYSTEM) c-client
|
||||||
|
- $(TOOLS)/$@ "$(LN)" src/mtest mtest
|
||||||
|
$(TOOLS)/$@ "$(LN)" src/ipopd ipopd
|
||||||
|
$(TOOLS)/$@ "$(LN)" src/imapd imapd
|
||||||
|
$(TOOLS)/$@ "$(LN)" src/mailutil mailutil
|
||||||
|
@@ -706,7 +705,6 @@ rebuildclean:
|
||||||
|
|
||||||
|
bundled:
|
||||||
|
@echo Building bundled tools...
|
||||||
|
- $(CD) mtest;$(MAKE)
|
||||||
|
$(CD) ipopd;$(MAKE)
|
||||||
|
$(CD) imapd;$(MAKE)
|
||||||
|
$(CD) mailutil;$(MAKE)
|
||||||
|
--
|
||||||
|
2.37.3
|
||||||
|
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
From fbd00d93cc07fa5da20414b355fffe628dcd37b3 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Khem Raj <raj.khem@gmail.com>
|
||||||
|
Date: Wed, 7 Sep 2022 13:57:19 -0700
|
||||||
|
Subject: [PATCH 2/2] tmail: Include ctype.h for isdigit
|
||||||
|
|
||||||
|
Upstream-Status: Pending
|
||||||
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||||
|
---
|
||||||
|
src/tmail/tmail.c | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/src/tmail/tmail.c b/src/tmail/tmail.c
|
||||||
|
index ed5fc58..a9e3645 100644
|
||||||
|
--- a/src/tmail/tmail.c
|
||||||
|
+++ b/src/tmail/tmail.c
|
||||||
|
@@ -26,6 +26,7 @@
|
||||||
|
* Last Edited: 30 October 2008
|
||||||
|
*/
|
||||||
|
|
||||||
|
+#include <ctype.h> /* for isdigit */
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <pwd.h>
|
||||||
|
#include <errno.h>
|
||||||
|
--
|
||||||
|
2.37.3
|
||||||
|
|
||||||
@@ -12,6 +12,8 @@ SRC_URI = "https://fossies.org/linux/misc/old/imap-${PV}.tar.gz \
|
|||||||
file://imap-2007f-format-security.patch \
|
file://imap-2007f-format-security.patch \
|
||||||
file://0001-Support-OpenSSL-1.1.patch \
|
file://0001-Support-OpenSSL-1.1.patch \
|
||||||
file://0001-Define-prototype-for-safe_flock.patch \
|
file://0001-Define-prototype-for-safe_flock.patch \
|
||||||
|
file://0001-Do-not-build-mtest.patch \
|
||||||
|
file://0002-tmail-Include-ctype.h-for-isdigit.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
SRC_URI[md5sum] = "2126fd125ea26b73b20f01fcd5940369"
|
SRC_URI[md5sum] = "2126fd125ea26b73b20f01fcd5940369"
|
||||||
|
|||||||
Reference in New Issue
Block a user