From dbbf9a052f3740edccf3cb3ce4f46d687da158f1 Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Thu, 8 Apr 2010 04:07:14 +0000 Subject: [PATCH] Okay maybe make it crash EVEN less. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4495 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/files.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ? ")); -- 2.39.5