summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2014-01-02 18:09:26 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2014-01-07 13:55:50 +0100
commit793e5d0350c953c3f2a1177cac158e0a80c220a6 (patch)
treed1317adc2be4ba3ac6e6e3baabace702632a7be3 /common
parent6674e1c136774243ff08f07a26e2ae02c260bbd1 (diff)
backtrace: Don't attempt to call seteuid(0)
We are mostly likely not running as root, so this call will fail. As we are supposed to check its return value as it's declared with warn_unused_result, the current way of using it is wrong, so this commit just removes the call.
Diffstat (limited to 'common')
-rw-r--r--common/backtrace.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/common/backtrace.c b/common/backtrace.c
index 305bbad..1b7fab3 100644
--- a/common/backtrace.c
+++ b/common/backtrace.c
@@ -78,7 +78,6 @@ static int spice_backtrace_gstack(void)
/* CHILD */
char parent[16];
- seteuid(0);
close(STDIN_FILENO);
close(STDOUT_FILENO);
dup2(pipefd[1],STDOUT_FILENO);