files: always update the stat info when the entire file is written
This fixes https://savannah.gnu.org/bugs/?52519.master
parent
0c9905dbd0
commit
20aa167c14
|
@ -1950,7 +1950,7 @@ bool write_file(const char *name, FILE *f_open, bool tmp,
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
if (!openfile->mark)
|
if (!nonamechange)
|
||||||
/* Get or update the stat info to reflect the current state. */
|
/* Get or update the stat info to reflect the current state. */
|
||||||
stat_with_alloc(realname, &openfile->current_stat);
|
stat_with_alloc(realname, &openfile->current_stat);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue