diff options
author | Ørjan Malde <red@foxi.me> | 2022-10-20 16:35:46 +0200 |
---|---|---|
committer | Ørjan Malde <red@foxi.me> | 2022-10-20 16:35:46 +0200 |
commit | 24382bb96445509ee3881252c7f25bf9588e86c3 (patch) | |
tree | ef95e9f142076135bdb7fd425745f943bf5a189d /patches/cvs-1.12.13.local.patch | |
parent | 431e76dbcfee938f565eee5712b8b40ffb58c346 (diff) | |
download | midipix_build-24382bb96445509ee3881252c7f25bf9588e86c3.tar.bz2 midipix_build-24382bb96445509ee3881252c7f25bf9588e86c3.tar.xz |
groups/241.native_packages_inet.group: adds cvs v1.12.13
Signed-off-by: Ørjan Malde <red@foxi.me>
Diffstat (limited to 'patches/cvs-1.12.13.local.patch')
-rw-r--r-- | patches/cvs-1.12.13.local.patch | 29 |
1 files changed, 29 insertions, 0 deletions
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); + |