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:
Fredrik Fornwall 2016-09-03 23:55:25 +02:00 committed by Andrew Borodin
parent 558fb350f8
commit ded5d37ff0
1 changed files with 1 additions and 1 deletions

View File

@ -1804,7 +1804,7 @@ edit_save_as_cmd (WEdit * edit)
if (different_filename)
/* Allow user to write into saved (under another name) file
* 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);
switch (rv)