From 8b9c75d67f568d45ed9d0c5af393709be520459a Mon Sep 17 00:00:00 2001 From: Andrew Aldridge Date: Sun, 15 Jan 2017 11:56:52 +0000 Subject: [PATCH] Fix copying special files in Tracker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Axel Dörfler --- src/kits/tracker/FSUtils.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/kits/tracker/FSUtils.cpp b/src/kits/tracker/FSUtils.cpp index f0c09a6c7d..5399efcd33 100644 --- a/src/kits/tracker/FSUtils.cpp +++ b/src/kits/tracker/FSUtils.cpp @@ -1589,10 +1589,12 @@ CopyFolder(BEntry* srcEntry, BDirectory* destDir, removeSource); if (removeSource) FSDeleteFolder(&entry, loopControl, true, true, false); - } else { + } else if (S_ISREG(statbuf.st_mode) || S_ISLNK(statbuf.st_mode)) { CopyFile(&entry, &statbuf, &newDir, loopControl, 0, false, undo); if (removeSource) entry.Remove(); + } else { + // Ignore special files } } if (removeSource)