Updating branch refs/heads/master to 2172fa840c7606cd18e6758456e8dc40e5845adf (commit) from 1ec8ff89ec5a3314fcd6a57f1475654ddecc9875 (commit)
commit 2172fa840c7606cd18e6758456e8dc40e5845adf Author: Nick Schermer <n...@xfce.org> Date: Wed Oct 3 21:42:09 2012 +0200 Only change file mode if old and new differ. thunar/thunar-io-jobs.c | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/thunar/thunar-io-jobs.c b/thunar/thunar-io-jobs.c index 6db1b8b..4f2d540 100644 --- a/thunar/thunar-io-jobs.c +++ b/thunar/thunar-io-jobs.c @@ -1093,12 +1093,15 @@ retry_chown: * information) into account */ new_mode = ((old_mode & ~mask) | mode) & 07777; - /* try to change the file mode */ - g_file_set_attribute_uint32 (lp->data, - G_FILE_ATTRIBUTE_UNIX_MODE, new_mode, - G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, - exo_job_get_cancellable (EXO_JOB (job)), - &err); + if (old_mode != new_mode) + { + /* try to change the file mode */ + g_file_set_attribute_uint32 (lp->data, + G_FILE_ATTRIBUTE_UNIX_MODE, new_mode, + G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, + exo_job_get_cancellable (EXO_JOB (job)), + &err); + } /* check if there was a recoverable error */ if (err != NULL && !exo_job_is_cancelled (EXO_JOB (job))) _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits