update: delete ignored symlinks from database

When you disable the "follow_outside_symlinks" or the
"follow_inside_symlinks" setting, the next update should remove the
now-ignored files from the database.
This commit is contained in:
Max Kellermann 2009-10-27 22:06:28 +01:00
parent 1a6ed81193
commit d083032236
2 changed files with 6 additions and 1 deletions

1
NEWS
View File

@ -1,5 +1,6 @@
ver 0.15.6 (2009/??/??)
* output_thread: check again if output is open on PAUSE
* update: delete ignored symlinks from database
ver 0.15.5 (2009/10/18)

View File

@ -672,7 +672,11 @@ updateDirectory(struct directory *directory, const struct stat *st)
continue;
utf8 = fs_charset_to_utf8(ent->d_name);
if (utf8 == NULL || skip_symlink(directory, utf8)) {
if (utf8 == NULL)
continue;
if (skip_symlink(directory, utf8)) {
delete_name_in(directory, utf8);
g_free(utf8);
continue;
}