mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-08 18:30:32 +01:00
keyfile: ignore temp files ending with ~
This commit is contained in:
parent
0eb215d9f4
commit
eaeb43bfad
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue