Index: gedit/gedit-document-saver.c =================================================================== RCS file: /cvs/gnome/gedit/gedit/gedit-document-saver.c,v retrieving revision 1.5 diff -u -p -r1.5 gedit-document-saver.c --- gedit/gedit-document-saver.c 1 Feb 2006 08:32:36 -0000 1.5 +++ gedit/gedit-document-saver.c 30 Mar 2006 16:11:23 -0000 @@ -692,7 +692,8 @@ save_existing_local_file (GeditDocumentS * original file. If this fails, set the protection * bits for the group same as the protection bits for * others. */ - if (fchown (bfd, (uid_t) -1, statbuf.st_gid) != 0) + if ((getgid () != statbuf.st_gid) && + (fchown (bfd, (uid_t) -1, statbuf.st_gid) != 0)) { if (fchmod (bfd, (statbuf.st_mode& 0707) |