From dd8da85eb4b359bce6b48eea430116692cf4e829 Mon Sep 17 00:00:00 2001
From: Andrew Aldridge <i80and@foxquill.com>
Date: Sun, 15 Jan 2017 11:56:52 +0000
Subject: [PATCH] Fix copying special files in Tracker
---
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 f0c09a6..5399efc 100644
a
|
b
|
CopyFolder(BEntry* srcEntry, BDirectory* destDir,
|
1589 | 1589 | removeSource); |
1590 | 1590 | if (removeSource) |
1591 | 1591 | FSDeleteFolder(&entry, loopControl, true, true, false); |
1592 | | } else { |
| 1592 | } else if (S_ISREG(statbuf.st_mode) || S_ISLNK(statbuf.st_mode)) { |
1593 | 1593 | CopyFile(&entry, &statbuf, &newDir, loopControl, 0, false, undo); |
1594 | 1594 | if (removeSource) |
1595 | 1595 | entry.Remove(); |
| 1596 | } else { |
| 1597 | // Ignore special files |
1596 | 1598 | } |
1597 | 1599 | } |
1598 | 1600 | if (removeSource) |