mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
* extfs.c (extfs_open): Don't run "copyout" if the file just has
been created or O_TRUNC is given in the flags. Reported by Adam Byrtek 'alpha' <alpha@irc.pl>
This commit is contained in:
parent
fd44d72c55
commit
7a16741def
@ -1,5 +1,9 @@
|
||||
2002-12-06 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* extfs.c (extfs_open): Don't run "copyout" if the file just has
|
||||
been created or O_TRUNC is given in the flags.
|
||||
Reported by Adam Byrtek 'alpha' <alpha@irc.pl>
|
||||
|
||||
* extfs/uar.in: Implement "copyin" and "rm" commands.
|
||||
|
||||
2002-12-06 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||
|
@ -658,8 +658,8 @@ extfs_open (vfs * me, char *file, int flags, int mode)
|
||||
return NULL;
|
||||
close (local_handle);
|
||||
|
||||
if (extfs_cmd (" copyout ", archive, entry, local_filename)
|
||||
&& !created) {
|
||||
if (!created && !(flags & O_TRUNC)
|
||||
&& extfs_cmd (" copyout ", archive, entry, local_filename)) {
|
||||
unlink (local_filename);
|
||||
free (local_filename);
|
||||
my_errno = EIO;
|
||||
|
Loading…
Reference in New Issue
Block a user