efreet: make geteuid an optional function.

This commit is contained in:
Cedric Bail 2013-06-25 18:11:43 +09:00
parent e888a07c0a
commit e920c2cc76
2 changed files with 3 additions and 0 deletions

View File

@ -518,6 +518,7 @@ mkdirat \
mtrace \
realpath \
strlcpy \
geteuid \
])
AC_FUNC_ALLOCA

View File

@ -335,6 +335,7 @@ efreet_dirs_init(void)
}
else if ((st.st_mode & 0777) != 0700)
{
#ifdef HAVE_GETEUID
if (st.st_uid == geteuid())
{
ERR("XDG_RUNTIME_DIR=%s is mode %o, changing to 0700",
@ -346,6 +347,7 @@ efreet_dirs_init(void)
eina_stringshare_replace(&xdg_runtime_dir, NULL);
}
}
#endif
}
/* hostname */
if (gethostname(buf, sizeof(buf)) < 0)