This patch fixes SLiM so it really waits for the X server to be ready before attempting to connect to it. Indeed, the X server notices that its parent process has a handler for SIGUSR1, and consequently sends it SIGUSR1 when it's ready to accept connections. The problem was that SLiM doesn't pay attention to SIGUSR1. So in practice, if X starts slowly, then SLiM gets ECONNREFUSED a couple of time on /tmp/.X11-unix/X0, then goes on trying to connect to localhost:6000, where nobody answers; eventually, it times out and tries again on /tmp/.X11-unix/X0, and finally it shows up on the screen. Patch by L. Courtès. --- slim-1.3.6/app.cpp 2014-02-05 15:27:20.000000000 +0100 +++ slim-1.3.6/app.cpp 2014-02-09 22:42:04.000000000 +0100 @@ -119,7 +119,9 @@ void CatchSignal(int sig) { exit(ERR_EXIT); } +static volatile int got_sigusr1 = 0; void User1Signal(int sig) { + got_sigusr1 = 1; signal(sig, User1Signal); } @@ -884,6 +886,7 @@ int App::WaitForServer() { int ncycles = 120; int cycles; + while (!got_sigusr1); for(cycles = 0; cycles < ncycles; cycles++) { if((Dpy = XOpenDisplay(DisplayName))) { XSetIOErrorHandler(xioerror); '/guix/refs/?id=7937c8827b8d23347a3159b4696335bd19fc17aa'>refslogtreecommitdiff
path: root/gnu/packages/patches/unzip-zipbomb-manpage.patch
AgeCommit message (Expand)Author
2021-03-14gnu: unzip: Add patches from Fedora [security fixes]....Non-exhaustively fixes CVE-2016-9844, CVE-2018-1000035, CVE-2018-18384, and CVE-2019-13232. * gnu/packages/patches/unzip-COVSCAN-fix-unterminated-string.patch, gnu/packages/patches/unzip-CVE-2016-9844.patch, gnu/packages/patches/unzip-CVE-2018-1000035.patch, gnu/packages/patches/unzip-CVE-2018-18384.patch, gnu/packages/patches/unzip-case-insensitive.patch, gnu/packages/patches/unzip-alt-iconv-utf8-print.patch, gnu/packages/patches/unzip-alt-iconv-utf8.patch, gnu/packages/patches/unzip-close.patch, gnu/packages/patches/unzip-exec-shield.patch, gnu/packages/patches/unzip-fix-recmatch.patch, gnu/packages/patches/unzip-manpage-fix.patch, gnu/packages/patches/unzip-overflow.patch, gnu/packages/patches/unzip-symlink.patch, gnu/packages/patches/unzip-timestamp.patch, gnu/packages/patches/unzip-valgrind.patch, gnu/packages/patches/unzip-x-option.patch, gnu/packages/patches/unzip-zipbomb-manpage.patch, gnu/packages/patches/unzip-zipbomb-part1.patch, gnu/packages/patches/unzip-zipbomb-part2.patch, gnu/packages/patches/unzip-zipbomb-part3.patch: New patches. * gnu/local.mk (dist_patch_DATA): Register them. * gnu/packages/compression.scm (unzip/fixed): New variable. Apply patches. (unzip)[replacement]: Graft. Léo Le Bouter