diff options
| -rw-r--r-- | meta-oe/recipes-devtools/uw-imap/uw-imap/0001-Define-prototype-for-safe_flock.patch | 105 | ||||
| -rw-r--r-- | meta-oe/recipes-devtools/uw-imap/uw-imap_2007f.bb | 3 |
2 files changed, 107 insertions, 1 deletions
diff --git a/meta-oe/recipes-devtools/uw-imap/uw-imap/0001-Define-prototype-for-safe_flock.patch b/meta-oe/recipes-devtools/uw-imap/uw-imap/0001-Define-prototype-for-safe_flock.patch new file mode 100644 index 0000000000..11f1c18d4d --- /dev/null +++ b/meta-oe/recipes-devtools/uw-imap/uw-imap/0001-Define-prototype-for-safe_flock.patch | |||
| @@ -0,0 +1,105 @@ | |||
| 1 | From c512c877a7ca933bee980dcc1268a7319f233d59 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Fri, 2 Sep 2022 00:07:47 -0700 | ||
| 4 | Subject: [PATCH] Define prototype for safe_flock | ||
| 5 | |||
| 6 | Upstream-Status: Pending | ||
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 8 | --- | ||
| 9 | src/osdep/unix/env_unix.c | 3 +++ | ||
| 10 | src/osdep/unix/mbx.c | 2 ++ | ||
| 11 | src/osdep/unix/os_lnx.h | 2 ++ | ||
| 12 | src/osdep/unix/os_slx.h | 3 +++ | ||
| 13 | src/osdep/unix/unix.c | 4 ++++ | ||
| 14 | 5 files changed, 14 insertions(+) | ||
| 15 | |||
| 16 | diff --git a/src/osdep/unix/env_unix.c b/src/osdep/unix/env_unix.c | ||
| 17 | index 6b2c447..cefefca 100644 | ||
| 18 | --- a/src/osdep/unix/env_unix.c | ||
| 19 | +++ b/src/osdep/unix/env_unix.c | ||
| 20 | @@ -59,6 +59,9 @@ | ||
| 21 | #define S_IXOTH (S_IEXEC >> 6) | ||
| 22 | #endif | ||
| 23 | |||
| 24 | + | ||
| 25 | +extern int safe_flock (int fd,int op); | ||
| 26 | + | ||
| 27 | /* c-client environment parameters */ | ||
| 28 | |||
| 29 | static char *myUserName = NIL; /* user name */ | ||
| 30 | diff --git a/src/osdep/unix/mbx.c b/src/osdep/unix/mbx.c | ||
| 31 | index 1ece5d8..c8a45a5 100644 | ||
| 32 | --- a/src/osdep/unix/mbx.c | ||
| 33 | +++ b/src/osdep/unix/mbx.c | ||
| 34 | @@ -41,12 +41,14 @@ extern int errno; /* just in case */ | ||
| 35 | #include "mail.h" | ||
| 36 | #include "osdep.h" | ||
| 37 | #include <pwd.h> | ||
| 38 | +#include <utime.h> | ||
| 39 | #include <sys/stat.h> | ||
| 40 | #include <sys/time.h> | ||
| 41 | #include "misc.h" | ||
| 42 | #include "dummy.h" | ||
| 43 | #include "fdstring.h" | ||
| 44 | |||
| 45 | +extern int safe_flock (int fd,int op); | ||
| 46 | |||
| 47 | /* Build parameters */ | ||
| 48 | |||
| 49 | diff --git a/src/osdep/unix/os_lnx.h b/src/osdep/unix/os_lnx.h | ||
| 50 | index b5f39ff..22c216b 100644 | ||
| 51 | --- a/src/osdep/unix/os_lnx.h | ||
| 52 | +++ b/src/osdep/unix/os_lnx.h | ||
| 53 | @@ -57,6 +57,8 @@ | ||
| 54 | |||
| 55 | #define direct dirent | ||
| 56 | |||
| 57 | +extern int safe_flock (int fd,int op); | ||
| 58 | + | ||
| 59 | #define flock safe_flock | ||
| 60 | |||
| 61 | |||
| 62 | diff --git a/src/osdep/unix/os_slx.h b/src/osdep/unix/os_slx.h | ||
| 63 | index b5f39ff..c9adbcd 100644 | ||
| 64 | --- a/src/osdep/unix/os_slx.h | ||
| 65 | +++ b/src/osdep/unix/os_slx.h | ||
| 66 | @@ -46,11 +46,14 @@ | ||
| 67 | #include <sys/types.h> | ||
| 68 | #include <dirent.h> | ||
| 69 | #include <time.h> /* for struct tm */ | ||
| 70 | +#include <utime.h> /* for struct tm */ | ||
| 71 | #include <fcntl.h> | ||
| 72 | #include <syslog.h> | ||
| 73 | #include <sys/file.h> | ||
| 74 | |||
| 75 | |||
| 76 | +extern int safe_flock (int fd,int op); | ||
| 77 | + | ||
| 78 | /* Linux gets this wrong */ | ||
| 79 | |||
| 80 | #define setpgrp setpgid | ||
| 81 | diff --git a/src/osdep/unix/unix.c b/src/osdep/unix/unix.c | ||
| 82 | index be3c437..86be3f9 100644 | ||
| 83 | --- a/src/osdep/unix/unix.c | ||
| 84 | +++ b/src/osdep/unix/unix.c | ||
| 85 | @@ -45,6 +45,7 @@ extern int errno; /* just in case */ | ||
| 86 | #include "mail.h" | ||
| 87 | #include "osdep.h" | ||
| 88 | #include <time.h> | ||
| 89 | +#include <utime.h> | ||
| 90 | #include <sys/stat.h> | ||
| 91 | #include "unix.h" | ||
| 92 | #include "pseudo.h" | ||
| 93 | @@ -52,6 +53,9 @@ extern int errno; /* just in case */ | ||
| 94 | #include "misc.h" | ||
| 95 | #include "dummy.h" | ||
| 96 | |||
| 97 | + | ||
| 98 | +extern int safe_flock (int fd,int op); | ||
| 99 | + | ||
| 100 | /* UNIX I/O stream local data */ | ||
| 101 | |||
| 102 | typedef struct unix_local { | ||
| 103 | -- | ||
| 104 | 2.37.3 | ||
| 105 | |||
diff --git a/meta-oe/recipes-devtools/uw-imap/uw-imap_2007f.bb b/meta-oe/recipes-devtools/uw-imap/uw-imap_2007f.bb index df90b629a9..3f2c9a2237 100644 --- a/meta-oe/recipes-devtools/uw-imap/uw-imap_2007f.bb +++ b/meta-oe/recipes-devtools/uw-imap/uw-imap_2007f.bb | |||
| @@ -11,6 +11,7 @@ SRC_URI = "https://fossies.org/linux/misc/old/imap-${PV}.tar.gz \ | |||
| 11 | file://imap-2007e-shared.patch \ | 11 | file://imap-2007e-shared.patch \ |
| 12 | file://imap-2007f-format-security.patch \ | 12 | file://imap-2007f-format-security.patch \ |
| 13 | file://0001-Support-OpenSSL-1.1.patch \ | 13 | file://0001-Support-OpenSSL-1.1.patch \ |
| 14 | file://0001-Define-prototype-for-safe_flock.patch \ | ||
| 14 | " | 15 | " |
| 15 | 16 | ||
| 16 | SRC_URI[md5sum] = "2126fd125ea26b73b20f01fcd5940369" | 17 | SRC_URI[md5sum] = "2126fd125ea26b73b20f01fcd5940369" |
| @@ -25,7 +26,7 @@ CVE_CHECK_IGNORE += "\ | |||
| 25 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" | 26 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" |
| 26 | PACKAGECONFIG[pam] = ",,libpam" | 27 | PACKAGECONFIG[pam] = ",,libpam" |
| 27 | 28 | ||
| 28 | EXTRA_OEMAKE = "CC='${CC}' ARRC='${AR} -rc' RANLIB='${RANLIB}'" | 29 | EXTRA_OEMAKE = "CC='${CC} -std=c99 -D_GNU_SOURCE' ARRC='${AR} -rc' RANLIB='${RANLIB}'" |
| 29 | 30 | ||
| 30 | HEADERS = "src/c-client/*.h src/osdep/unix/*.h c-client/auths.c c-client/linkage.c c-client/linkage.h c-client/osdep.h" | 31 | HEADERS = "src/c-client/*.h src/osdep/unix/*.h c-client/auths.c c-client/linkage.c c-client/linkage.h c-client/osdep.h" |
| 31 | 32 | ||
