Ticket #1729: extfs: fail copying into arhive
commitf589410ced9f7a145df426c2077395df0711fa17
authorSlava Zanko <slavazanko@gmail.com>
Tue, 20 Oct 2009 10:04:30 +0000 (20 13:04 +0300)
committerSlava Zanko <slavazanko@gmail.com>
Tue, 20 Oct 2009 10:04:30 +0000 (20 13:04 +0300)
tree5cefa9366960aa721554948c19e7e8f657df35a3
parenta1a21641702e461145a26267ef0bfa750d521f34
Ticket #1729: extfs: fail copying into arhive

Test case:
 * create any zip-archive (or take exists)
 * run mc
 * enter into archive
 * try to copy any files inside archive.

Fix issue: Try to open temporarry file twice: with O_CREATE flag; and without O_CREATE and with O_TRUNC flag
Also, created extfs_chown() function for avoid chown-related warnings.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
vfs/extfs.c