shared: SandboxedProcessor: Return NO_ACCESS when file not readable

Tá an tiomantas seo le fáil i:
Albert S. 2022-06-23 15:24:49 +02:00
tuismitheoir 01a6a499c5
tiomantas 0867ab294d
D'athraigh 2 comhad le 5 breiseanna agus 0 scriosta

Féach ar an gComhad

@ -11,6 +11,7 @@ enum DataSource
};
#define NOTHING_PROCESSED 4
#define NO_ACCESS 5
class Processor
{

Féach ar an gComhad

@ -92,6 +92,10 @@ int SandboxedProcessor::process()
processor = defaultTextProcessor;
}
}
if(!fileInfo.isReadable())
{
return NO_ACCESS;
}
if(processor == nullptr || processor == nothingProcessor)
{
/* Nothing to do */