-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dataloss: moving a file and skipping upon problem deletes original file #3128
Comments
looks like it might be actually connected to inability to store files over ssh at all. copying (even with attribute keeping disabled) fails, too |
...and the real reason - it does not see "permission denied" error and assumes file was uploaded successfully |
I'm absolutely unable to reproduce this bug. Everything works fine for me.
Please provide detailed step-by-step testcase. |
sorry for missing that question. this has been reproduced by others and suse has disabled fish support completely because of this. see http://lists.opensuse.org/opensuse/2014-12/msg01128.html for more detail |
Replying to richlv:
The destination directory is write-protected. This is key moment here.
We have send and append helper scripts with the following code:
There is no error handling here.
When tee -a is unable to write to destination file, it returns "not 0". But tee is not the final stage of the pipe, and we can't get it's return value (like $?). Bash provides $PIPESTATUS, other shells don't. We must provide the portable shell code here.
There was some reason [407497f] for such complex way dd | tee | wc. Probably, this code should be fully rewritten. |
From #3963 comment 2:
I can confirm.
fish stor/send helper function don't catch error at touch aka '>' and tee -a failure.
Sadly this is not enough, mc code don't handle error return of store function call I guess. |
|
Important
This issue was migrated from Trac:
richlv
(richlv@….net)howaboutsynergy@….me
move a file to some location that causes a problem (for example, unable to chown it on the other side over ssh/shell link).
when mc complains, choose 'skip'.
target file is not closed, but original file is still deleted.
reproduced with 4.8.4 in opensuse 13.1 and 4.8.11 in debian testing.
opensuse report : https://bugzilla.novell.com/show_bug.cgi?id=856501
The text was updated successfully, but these errors were encountered: