Minor updates:

- JSONparseCore:
  - Set File mode on create
- SelectableCore:
  - Check pipe() return value on create
  - Validate replacement of stdin with pipe
This commit is contained in:
Charl Wentzel
2017-07-17 22:51:30 +02:00
parent 9b86bf3573
commit c32875509d
2 changed files with 15 additions and 10 deletions

View File

@@ -105,7 +105,7 @@ bool CJSONparse::WriteToFile( const char * BasePath, const char * FilePath, cons
}
// Open file
if ((Handle = open( FilePath, O_CREAT|O_WRONLY|O_TRUNC )) < 0) {
if ((Handle = open( FilePath, O_CREAT|O_WRONLY|O_TRUNC, 660 )) < 0) {
Error = true;
sprintf( ErrorText, "Could not open file" );
return false;