x11-misc/slock: Turn the correct die() into a warning.
authorJeroen Roovers <jer@gentoo.org>
Mon, 15 Feb 2016 04:44:09 +0000 (05:44 +0100)
committerJeroen Roovers <jer@gentoo.org>
Mon, 15 Feb 2016 04:44:40 +0000 (05:44 +0100)
Package-Manager: portage-2.2.27

x11-misc/slock/files/slock-1.3-dontdieonme.patch
x11-misc/slock/slock-1.3-r1.ebuild [moved from x11-misc/slock/slock-1.3.ebuild with 100% similarity]

index dd08ba710b57738fa6ae3a9ae3dfd15e859d9e5f..bda110a2d5e6186323298376234de3171b1cde3b 100644 (file)
@@ -1,10 +1,11 @@
 --- a/slock.c
 +++ b/slock.c
-@@ -55,7 +55,6 @@
-       va_start(ap, errstr);
-       vfprintf(stderr, errstr, ap);
-       va_end(ap);
--      exit(1);
+@@ -81,7 +81,7 @@
+               die("buffer too small\n");
+       if (fd < 0 || write(fd, value, length) != length || close(fd) != 0)
+-              die("cannot disable the out-of-memory killer for this process (make sure to suid or sgid slock)\n");
++              fprintf(stderr, "cannot disable the out-of-memory killer for this process (make sure to suid or sgid slock)\n");
  }
+ #endif
  
- #ifdef __linux__