summaryrefslogtreecommitdiff
blob: 251eda35891a1bc747515c31883ddb41b8f1a254 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Patch by Matthias Schwarzott <zzam@gentoo.org>

diff -ru vdr-1.4.3-vanilla/vdr.c vdr-1.4.3/vdr.c
--- vdr-1.4.3-vanilla/vdr.c	2006-10-12 18:04:50.000000000 +0200
+++ vdr-1.4.3/vdr.c	2006-10-12 18:05:41.000000000 +0200
@@ -103,8 +103,8 @@
         fprintf(stderr, "vdr: cannot set user id %u: %s\n", (unsigned int)user->pw_uid, strerror(errno));
         return false;
         }
-     if (prctl(PR_SET_DUMPABLE, 2, 0, 0, 0) < 0) {
-        fprintf(stderr, "vdr: warning - cannot set dumpable: %s\n", strerror(errno));
+     if (prctl(PR_SET_DUMPABLE, 1, 0, 0, 0) < 0) {
+        esyslog("vdr: warning - cannot set dumpable: %s", strerror(errno));
         // always non-fatal, and will not work with kernel < 2.6.13
         }
      }