Fix copying special files in Tracker
Signed-off-by: Axel Dörfler <[email protected]>
This commit is contained in:
committed by
Axel Dörfler
parent
f7d2fd0ba6
commit
8b9c75d67f
@@ -1589,10 +1589,12 @@ CopyFolder(BEntry* srcEntry, BDirectory* destDir,
|
|||||||
removeSource);
|
removeSource);
|
||||||
if (removeSource)
|
if (removeSource)
|
||||||
FSDeleteFolder(&entry, loopControl, true, true, false);
|
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);
|
CopyFile(&entry, &statbuf, &newDir, loopControl, 0, false, undo);
|
||||||
if (removeSource)
|
if (removeSource)
|
||||||
entry.Remove();
|
entry.Remove();
|
||||||
|
} else {
|
||||||
|
// Ignore special files
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (removeSource)
|
if (removeSource)
|
||||||
|
|||||||
Reference in New Issue
Block a user