# HG changeset patch # User Timo Sirainen # Date 1276265002 -3600 # Node ID 0b0cb71aea039670c71eaf47a77e5a6b895bd8c6 # Parent a3e4af3df83db72ee2c2151a83a840ce77a704b1 dict file: If file's group permissions equal world permissions, don't try to change its gid. diff -r a3e4af3df83d -r 0b0cb71aea03 src/lib-dict/dict-file.c --- a/src/lib-dict/dict-file.c Mon Jun 07 19:01:23 2010 +0100 +++ b/src/lib-dict/dict-file.c Fri Jun 11 15:03:22 2010 +0100 @@ -300,7 +300,8 @@ return -1; } - if (src_st.st_gid != dest_st.st_gid) { + if (src_st.st_gid != dest_st.st_gid && + (src_st.st_mode & 0070) >> 3 != (src_st.st_mode & 0007)) { if (fchown(dest_fd, (uid_t)-1, src_st.st_gid) < 0) { i_error("fchown(%s, -1, %s) failed: %m", dest_path, dec2str(src_st.st_gid));