Ticket #10999: tracker.patch

File tracker.patch, 790 bytes (added by i80and, 7 years ago)
  • src/kits/tracker/FSUtils.cpp

    commit dd8da85eb4b359bce6b48eea430116692cf4e829
    Author: Andrew Aldridge <i80and@foxquill.com>
    Date:   Sun Jan 15 11:56:52 2017 +0000
    
        Fix copying special files in Tracker
    
    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,  
    15891589                removeSource);
    15901590            if (removeSource)
    15911591                FSDeleteFolder(&entry, loopControl, true, true, false);
    1592         } else {
     1592        } else if (S_ISREG(statbuf.st_mode) || S_ISLNK(statbuf.st_mode)) {
    15931593            CopyFile(&entry, &statbuf, &newDir, loopControl, 0, false, undo);
    15941594            if (removeSource)
    15951595                entry.Remove();
     1596        } else {
     1597            // Ignore special files
    15961598        }
    15971599    }
    15981600    if (removeSource)