commit:     493288e791574c69448063d5a93ba6c0bd6f5dfd
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 15 04:44:09 2016 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Mon Feb 15 04:44:40 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=493288e7

x11-misc/slock: Turn the correct die() into a warning.

Package-Manager: portage-2.2.27

 x11-misc/slock/files/slock-1.3-dontdieonme.patch         | 13 +++++++------
 x11-misc/slock/{slock-1.3.ebuild => slock-1.3-r1.ebuild} |  0
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/x11-misc/slock/files/slock-1.3-dontdieonme.patch 
b/x11-misc/slock/files/slock-1.3-dontdieonme.patch
index dd08ba7..bda110a 100644
--- a/x11-misc/slock/files/slock-1.3-dontdieonme.patch
+++ b/x11-misc/slock/files/slock-1.3-dontdieonme.patch
@@ -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__

diff --git a/x11-misc/slock/slock-1.3.ebuild 
b/x11-misc/slock/slock-1.3-r1.ebuild
similarity index 100%
rename from x11-misc/slock/slock-1.3.ebuild
rename to x11-misc/slock/slock-1.3-r1.ebuild

Reply via email to