summaryrefslogtreecommitdiff
path: root/src/lib/eina/eina_vpath.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/eina/eina_vpath.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/eina/eina_vpath.c b/src/lib/eina/eina_vpath.c
index ac2d6ca9e2..871612c64e 100644
--- a/src/lib/eina/eina_vpath.c
+++ b/src/lib/eina/eina_vpath.c
@@ -50,12 +50,10 @@ static char *
50_fallback_runtime_dir(const char *home) 50_fallback_runtime_dir(const char *home)
51{ 51{
52 char buf[PATH_MAX]; 52 char buf[PATH_MAX];
53#if defined(HAVE_GETUID)
54 uid_t uid = getuid();
55#endif
56 struct stat st; 53 struct stat st;
57
58#if defined(HAVE_GETUID) && defined(HAVE_GETEUID) 54#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
55 uid_t uid = getuid();
56
59 if (setuid(geteuid()) != 0) 57 if (setuid(geteuid()) != 0)
60 { 58 {
61 fprintf(stderr, 59 fprintf(stderr,