This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository efm2.
View the commit online.
commit 45bafe92a40066bc509ccc6780f8c74e4bf6a054
Author: Carsten Haitzler (Rasterman) <[email protected]>
AuthorDate: Fri Feb 13 15:19:59 2026 +0000
fs - cp_rm - dont chown+utimes if not cp-ing
---
src/backends/default/fs.c | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/src/backends/default/fs.c b/src/backends/default/fs.c
index 1aa8247..aa0366e 100644
--- a/src/backends/default/fs.c
+++ b/src/backends/default/fs.c
@@ -406,7 +406,9 @@ fs_cp_rm(const char *src, const char *dst, Eina_Bool report_err, Eina_Bool cp,
}
}
err_unlink:
- chown(dst, st.st_uid, st.st_gid); // ignore err
+ if (!cp)
+ { // if we just rm and don't cp...
+ chown(dst, st.st_uid, st.st_gid); // ignore err
// duplicate mtime+atime from src down to msic/nsec if possible
#ifdef STAT_NSEC
# ifdef st_mtime
@@ -423,11 +425,12 @@ err_unlink:
# define STAT_NSEC_MTIME(st) (unsigned long long)(0)
# define STAT_NSEC_CTIME(st) (unsigned long long)(0)
#endif
- times[0].tv_sec = st.st_atime;
- times[0].tv_usec = STAT_NSEC_ATIME(st) * 1000;
- times[1].tv_sec = st.st_mtime;
- times[1].tv_usec = STAT_NSEC_MTIME(st) * 1000;
- utimes(dst, times); // ingore err
+ times[0].tv_sec = st.st_atime;
+ times[0].tv_usec = STAT_NSEC_ATIME(st) * 1000;
+ times[1].tv_sec = st.st_mtime;
+ times[1].tv_usec = STAT_NSEC_MTIME(st) * 1000;
+ utimes(dst, times); // ingore err
+ }
err:
umask(old_umask);
return res;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.