summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-04-14 11:04:20 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-04-14 11:04:20 +0200
commitf13959a9f27fd35d2882672726f6cc9a424cb04c (patch)
tree9782a490a54e41dd3591cc2e11d2a4a193be87b5 /vdr.c
parentf3feda52cd6d4bce31e62bb727d43ec258b3f64b (diff)
downloadvdr-f13959a9f27fd35d2882672726f6cc9a424cb04c.tar.gz
vdr-f13959a9f27fd35d2882672726f6cc9a424cb04c.tar.bz2
Using geteuid() to check whether VDR is running as user 'root'
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vdr.c b/vdr.c
index 8d9ab54a..510be02c 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.cadsoft.de/vdr
*
- * $Id: vdr.c 1.254 2006/04/09 12:22:46 kls Exp $
+ * $Id: vdr.c 1.255 2006/04/14 11:01:18 kls Exp $
*/
#include <getopt.h>
@@ -346,7 +346,7 @@ int main(int argc, char *argv[])
// Set user id in case we were started as root:
- if (VdrUser && getuid() == 0) {
+ if (VdrUser && geteuid() == 0) {
StartedAsRoot = true;
if (strcmp(VdrUser, "root")) {
if (!SetKeepCaps(true))