Re: detach on quick-save
- From: "Andrew V. Samoilov" <andrew email zp ua>
- To: mc-devel gnome org
- Subject: Re: detach on quick-save
- Date: Wed, 9 Feb 2005 12:45:44 +0200 (EET)
> in quick-save mode the editor just overwrites the existing file. this is
> all fine ... except when you cloned a source tree with "cp -al" and want
> to patch one copy.
> this patch adds a check whether the file has multiple hard links and
> asks whether the file should be "detached" before saving.
> not sure the dialog looks 100% right, but you get the idea. :)
Safe save has to be the best choise for these cases.
Also you cannot move mc_chown()/mc_chmod() calls because they must be called
before mc_open(). Elsewhere mc editor will hang for FTPD timeout on ftpfs
and forever on fishfs.
Andrew V. Samoilov
GET INTERNET ACCESS FROM BCS! http://www.bcs.zp.ua
Join BCS today! For your FREE webmail, visit: http://email.zp.ua/
] [Thread Prev