From d083032236dc05f00a9bfab201537083f7bb10b4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 27 Oct 2009 22:06:28 +0100 Subject: 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. --- src/update.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/update.c') diff --git a/src/update.c b/src/update.c index 24960b449..d5c9779c8 100644 --- a/src/update.c +++ b/src/update.c @@ -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; } -- cgit v1.2.3