From d4cf1aabedccf1714a5bf800c1f878905957b580 Mon Sep 17 00:00:00 2001 From: ~hatteb-mitlyd Date: Tue, 25 Mar 2014 10:39:53 -0700 Subject: [PATCH] ignore ~files too. hokey unix stuff. --- v/unix.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/v/unix.c b/v/unix.c index d7e8f8215..c768b807c 100644 --- a/v/unix.c +++ b/v/unix.c @@ -486,7 +486,9 @@ _unix_dir_update(u2_udir* dir_u, DIR* rid_u) mpz_t mod_mp; u2_ufil* fil_u; - if ( ( NULL == strrchr(out_u->d_name, '.')) ) { + if ( ( NULL == strrchr(out_u->d_name, '.')) || + ( '~' == out_u->d_name[strlen(out_u->d_name) - 1] ) + ) { continue; }