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:
parent
5de72940e3
commit
6c28972cb5
1 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue