Ticket #82 (savannah: "save as" retains mode) patch by imdagger
commit65771004c4948dd664674e8dee2ddce11786d777
authorSergei Trofimovich <slyfox@inbox.ru>
Sun, 9 Aug 2009 16:05:52 +0000 (9 19:05 +0300)
committerSergei Trofimovich <slyfox@inbox.ru>
Sun, 9 Aug 2009 16:24:42 +0000 (9 19:24 +0300)
tree8a186eaf795296686db9898774c2b9da22cc65db
parent96c0dc08d88763a4c107670b96208aa483d831ce
Ticket #82 (savannah: "save as" retains mode) patch by imdagger

Consider following scenario:
$ touch /tmp/foo_file
$ chmod 0444 /tmp/foo_file # readonly for owner
$ mcedit /tmp/foo_file
> 1. edit
> 2. try to save, fail. choose another name: /tmp/foo_file2
> 3. edit
> 4. try to save, fail again!

This patch adds owner write permissions for files, created in
step 2.

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
edit/editcmd.c