oops - copy perms from parent did the wrong thing. fix!

This commit is contained in:
Carsten Haitzler 2024-06-17 09:05:49 +01:00
parent fdfef7ea06
commit 6ca9a6ecde
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ util_file_mode_parent_copy(const char *file, Eina_Bool is_dir)
char *s, *dir_parent = strdup(file);
if (!dir_parent) return;
s = strrchr(file, '/');
s = strrchr(dir_parent, '/');
if (!s) goto err;
s[1] = '\0'; // get parent dir by truncating after /
if (lstat(dir_parent, &st) == 0)