mirror of https://github.com/MidnightCommander/mc
MidnightCommander/#113: replace S_IWRITE with S_IWUSR.
S_IWRITE is an obsolete synonym provided for BSD compatibility. It can be safely replaced with S_IWUSR. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
558fb350f8
commit
ded5d37ff0
|
@ -1804,7 +1804,7 @@ edit_save_as_cmd (WEdit * edit)
|
||||||
if (different_filename)
|
if (different_filename)
|
||||||
/* Allow user to write into saved (under another name) file
|
/* Allow user to write into saved (under another name) file
|
||||||
* even if original file had r/o user permissions. */
|
* even if original file had r/o user permissions. */
|
||||||
edit->stat1.st_mode |= S_IWRITE;
|
edit->stat1.st_mode |= S_IWUSR;
|
||||||
|
|
||||||
rv = edit_save_file (edit, exp_vpath);
|
rv = edit_save_file (edit, exp_vpath);
|
||||||
switch (rv)
|
switch (rv)
|
||||||
|
|
Loading…
Reference in New Issue