mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-09 09:15: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)
|
if (tokens < 10)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
|
return (str[10]);
|
||||||
return (str[11]);
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Method to obtain the filter string of file or folder.
|
* 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)
|
private DataElement handleQueryFilePermissions(DataElement subject, DataElement status)
|
||||||
{
|
{
|
||||||
File file = getFileFor(subject);
|
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);
|
String result = getFilePermission(file, PERMISSION_ALL);
|
||||||
status.setAttribute(DE.A_SOURCE, result);
|
status.setAttribute(DE.A_SOURCE, result);
|
||||||
|
|
Loading…
Add table
Reference in a new issue