Fix copying special files in Tracker

Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
This commit is contained in:
Andrew Aldridge 2017-01-15 11:56:52 +00:00 committed by Axel Dörfler
parent f7d2fd0ba6
commit 8b9c75d67f

View File

@ -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)