This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository efl.

View the commit online.

commit fcf7edac22625bde5fb902b48295491106817ed8
Author: Vincent Torri <vto...@outlook.fr>
AuthorDate: Sat Jun 29 21:01:07 2024 +0200

    add requested getuid/geteuid code
---
 src/modules/evas/engines/gl_common/evas_gl_file_cache.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/modules/evas/engines/gl_common/evas_gl_file_cache.c b/src/modules/evas/engines/gl_common/evas_gl_file_cache.c
index ffeb463d46..8d704b6e20 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_file_cache.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_file_cache.c
@@ -67,8 +67,11 @@ evas_gl_common_file_cache_dir_check(char *cache_dir, int num)
    char *home;
    char *subdir = ".cache/evas_gl_common_caches";
 
+#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
+   if (getuid() != geteuid()) return EINA_FALSE;
+#endif
    home = (char *)eina_environment_home_get();
-   if (!home) return 0;
+   if (!home) return EINA_FALSE;
 
    snprintf(cache_dir, num, "%s/%s", home, subdir);
    free(home);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to