1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-09 01:05:38 +02:00

[251729][dstore] problems querying symbolic link folder - fix for issues detected during review

This commit is contained in:
Martin Oberhuber 2008-11-11 13:02:30 +00:00
parent 5de72940e3
commit 6c28972cb5

View file

@ -1129,8 +1129,7 @@ public class UniversalFileSystemMiner extends Miner {
if (tokens < 10)
return null;
return (str[11]);
return (str[10]);
}
/**
* Method to obtain the filter string of file or folder.
@ -1919,6 +1918,11 @@ public class UniversalFileSystemMiner extends Miner {
private DataElement handleQueryFilePermissions(DataElement subject, DataElement status)
{
File file = getFileFor(subject);
if (file == null){
// subject may have been a filter pointing to a virtual
return statusCancelled(status);
}
String result = getFilePermission(file, PERMISSION_ALL);
status.setAttribute(DE.A_SOURCE, result);