shared: SandboxedProcessor: Return NO_ACCESS when file not readable
这个提交包含在:
父节点
01a6a499c5
当前提交
0867ab294d
@ -11,6 +11,7 @@ enum DataSource
|
||||
};
|
||||
|
||||
#define NOTHING_PROCESSED 4
|
||||
#define NO_ACCESS 5
|
||||
|
||||
class Processor
|
||||
{
|
||||
|
@ -92,6 +92,10 @@ int SandboxedProcessor::process()
|
||||
processor = defaultTextProcessor;
|
||||
}
|
||||
}
|
||||
if(!fileInfo.isReadable())
|
||||
{
|
||||
return NO_ACCESS;
|
||||
}
|
||||
if(processor == nullptr || processor == nothingProcessor)
|
||||
{
|
||||
/* Nothing to do */
|
||||
|
正在加载...
在新工单中引用
屏蔽一个用户