This is an automated email from the git hooks/post-receive script.
git pushed a commit to reference refs/pull/64/head
in repository efl.
View the commit online.
commit 684ac163dc5ac12bca5fde5911a24e17f3e3c79b
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.