mirror of
https://github.com/MidnightCommander/mc
synced 2025-04-01 12:42:57 +03:00
Applied patch from debian which fixes a test if a file can be opened.
This commit is contained in:
parent
1e2ed2f808
commit
b7ac1e0484
@ -245,7 +245,7 @@ edit_save_file (WEdit *edit, const char *filename)
|
||||
this_save_mode = option_save_mode;
|
||||
if (this_save_mode != EDIT_QUICK_SAVE) {
|
||||
if (!vfs_file_is_local (filename) ||
|
||||
(fd = mc_open (filename, O_WRONLY | O_BINARY)) == -1) {
|
||||
(fd = mc_open (filename, O_RDONLY | O_BINARY)) == -1) {
|
||||
/*
|
||||
* The file does not exists yet, so no safe save or
|
||||
* backup are necessary.
|
||||
|
Loading…
x
Reference in New Issue
Block a user