From 24382bb96445509ee3881252c7f25bf9588e86c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98rjan=20Malde?= Date: Thu, 20 Oct 2022 16:35:46 +0200 Subject: groups/241.native_packages_inet.group: adds cvs v1.12.13 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ørjan Malde --- patches/cvs-1.12.13.local.patch | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 patches/cvs-1.12.13.local.patch (limited to 'patches/cvs-1.12.13.local.patch') diff --git a/patches/cvs-1.12.13.local.patch b/patches/cvs-1.12.13.local.patch new file mode 100644 index 00000000..5d024d6e --- /dev/null +++ b/patches/cvs-1.12.13.local.patch @@ -0,0 +1,29 @@ +diff -ru cvs-1.12.13.orig/src/main.c cvs-1.12.13/src/main.c +--- cvs-1.12.13.orig/src/main.c 2022-10-20 15:44:42.306215161 +0200 ++++ cvs-1.12.13/src/main.c 2022-10-20 15:50:55.838352069 +0200 +@@ -24,10 +24,6 @@ + #include "strftime.h" + #include "xgethostname.h" + +-#ifdef USE_LIBBSD +-uint32_t arc4random(void); +-#endif +- + const char *program_name; + const char *program_path; + const char *cvs_cmd_name; +@@ -749,10 +745,13 @@ + + /* Calculate the cvs global session ID */ + ++ int random; ++ getentropy(&random, sizeof(int)); ++ + global_session_id = Xasprintf("1%010llX%04X%04X", + (unsigned long long)time(NULL), + (unsigned int)(getpid() & 0xFFFF), +- (unsigned int)(arc4random() & 0xFFFF)); ++ (unsigned int)random & 0xFFFF); + + TRACE (TRACE_FUNCTION, "main: Session ID is %s", global_session_id); + -- cgit v1.2.3