keyfile: ignore temp files ending with ~

This commit is contained in:
Dan Williams 2011-03-13 23:59:09 -05:00
parent 0eb215d9f4
commit eaeb43bfad

View file

@ -88,7 +88,8 @@ nm_keyfile_plugin_utils_should_ignore_file (const char *filename)
/* Ignore files with certain patterns */
if ( (check_prefix (base, ".") && check_suffix (base, SWP_TAG)) /* vim temporary files: .filename.swp */
|| (check_prefix (base, ".") && check_suffix (base, SWPX_TAG)) /* vim temporary files: .filename.swpx */
|| check_mkstemp_suffix (base)) /* temporary files created by mkstemp() */
|| check_mkstemp_suffix (base) /* temporary files created by mkstemp() */
|| base[strlen (base) - 1] == '~')
ignore = TRUE;
g_free (base);