mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Enabled generating a core dump if VDR is run with a different user id
This commit is contained in:
parent
0de4b0b043
commit
d13a7457bd
@ -1509,6 +1509,7 @@ Ville Skytt
|
|||||||
for removing the obsolete "ca.conf" section from vdr.1
|
for removing the obsolete "ca.conf" section from vdr.1
|
||||||
for making the cLircRemote try to reestablish the connection to the LIRC daemon
|
for making the cLircRemote try to reestablish the connection to the LIRC daemon
|
||||||
in case it breaks
|
in case it breaks
|
||||||
|
for enabling generating a core dump if VDR is run with a different user id
|
||||||
|
|
||||||
Steffen Beyer <cpunk@reactor.de>
|
Steffen Beyer <cpunk@reactor.de>
|
||||||
for fixing setting the colored button help after deleting a recording in case the next
|
for fixing setting the colored button help after deleting a recording in case the next
|
||||||
|
2
HISTORY
2
HISTORY
@ -4305,3 +4305,5 @@ Video Disk Recorder Revision History
|
|||||||
when you call 'runvdr'.
|
when you call 'runvdr'.
|
||||||
- Fixed multiple entries of the same subdirectory in the "Recordings" menu
|
- Fixed multiple entries of the same subdirectory in the "Recordings" menu
|
||||||
(reported by Christian Jacobsen).
|
(reported by Christian Jacobsen).
|
||||||
|
- Enabled generating a core dump if VDR is run with a different user id (thanks
|
||||||
|
to Ville Skyttä).
|
||||||
|
6
vdr.c
6
vdr.c
@ -22,7 +22,7 @@
|
|||||||
*
|
*
|
||||||
* The project's page is at http://www.cadsoft.de/vdr
|
* The project's page is at http://www.cadsoft.de/vdr
|
||||||
*
|
*
|
||||||
* $Id: vdr.c 1.248 2006/02/04 14:49:12 kls Exp $
|
* $Id: vdr.c 1.249 2006/02/05 12:57:10 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
@ -97,6 +97,10 @@ static bool SetUser(const char *UserName)
|
|||||||
fprintf(stderr, "vdr: cannot set user id %u: %s\n", (unsigned int)user->pw_uid, strerror(errno));
|
fprintf(stderr, "vdr: cannot set user id %u: %s\n", (unsigned int)user->pw_uid, strerror(errno));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (prctl(PR_SET_DUMPABLE, 2, 0, 0, 0) < 0) {
|
||||||
|
fprintf(stderr, "vdr: warning - cannot set dumpable: %s\n", strerror(errno));
|
||||||
|
// always non-fatal, and will not work with kernel < 2.6.13
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user