Saving file on top of directory changes dir's permissions. Reproducible: Always Steps to Reproduce: $ mkdir testtest $ stat testtest File: `testtest/' Size: 4096 Blocks: 8 IO Block: 4096 directory Device: fd04h/64772d Inode: 75 Links: 2 Access: (0700/drwx------) Uid: ( 1000/ marcin) Gid: ( 1000/ marcin) Access: 2012-03-22 17:27:48.815833915 +0100 Modify: 2012-03-22 17:27:48.815833915 +0100 Change: 2012-03-22 17:27:48.815833915 +0100 Birth: - $ mceedit <write something> <F2-> enter file name->testtest> "A file already exists with this name" -> choose "Overwrite" "File has hard-links. Detach before saving?"-> choose "Yes" "Cannot save file"->Dismiss <and again without quiting mceedit> <F2-> enter file name->testtest> "A file already exists with this name" -> choose "Overwrite" <hey, where is question about hard links?> "Cannot save file"->Dismiss <quit qithout saving> $ stat testtest/ File: `testtest/' Size: 4096 Blocks: 8 IO Block: 4096 directory Device: fd04h/64772d Inode: 75 Links: 2 Access: (0644/drw-r--r--) Uid: ( 1000/ marcin) Gid: ( 1000/ marcin) Access: 2012-03-22 17:27:48.815833915 +0100 Modify: 2012-03-22 17:27:48.815833915 +0100 Change: 2012-03-22 17:28:47.265891420 +0100 Please look at permissions, they are changed.
Pushed upstream's patch as: > *mc-4.8.2-r2 (27 Mar 2012) > > 27 Mar 2012; Sergei Trofimovich <slyfox@gentoo.org> > +files/mc-4.8.2-fix-existing.patch, +mc-4.8.2-r2.ebuild, -mc-4.8.2-r1.ebuild, > -mc-4.8.2.ebuild: > Fix bug #409365 by Marcin Mirosław (broken permissions when attempt to save > file on top of directory). Patch picked from upstream. Thanks again, Marcin!
Thanks!