From: Chris Allegretta Date: Thu, 8 Apr 2010 04:07:14 +0000 (+0000) Subject: Okay maybe make it crash EVEN less. X-Git-Tag: v2.2.4~8 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=dbbf9a052f3740edccf3cb3ce4f46d687da158f1;p=nano.git Okay maybe make it crash EVEN less. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4495 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/files.c b/src/files.c index 58355fad..dff74119 100644 --- a/src/files.c +++ b/src/files.c @@ -2136,7 +2136,7 @@ bool do_writeout(bool exiting) } #ifndef NANO_TINY - if (name_exists && (openfile->current_stat && openfile->current_stat->st_mtime < st.st_mtime || + if (name_exists && openfile->current_stat && (openfile->current_stat->st_mtime < st.st_mtime || openfile->current_stat->st_dev != st.st_dev || openfile->current_stat->st_ino != st.st_ino)) { i = do_yesno_prompt(FALSE, _("File was modified since you opened it, continue saving ? "));