...
Code Block | ||
---|---|---|
| ||
... int fd = open(file_name, O_CREAT | O_WRONLY, file_access_permissions); if (fd == -1){ /* Handle Error */ } ... |
Non-compliant Code Example 3 (Win32)
Compliant Code Solution 3 (Win32)
Risk Assessment
Creating files without appropriate access permissions may allow unintended access to those files.
...