MySQL 9.0.0
Source Code Documentation
my_path_permissions.cc File Reference
#include <errno.h>
#include "my_dir.h"

Functions

int is_file_or_dir_world_writable (const char *path)
 Check if a file/dir is world-writable (only on non-Windows platforms) More...
 

Function Documentation

◆ is_file_or_dir_world_writable()

int is_file_or_dir_world_writable ( const char *  path)

Check if a file/dir is world-writable (only on non-Windows platforms)

Parameters
[in]pathPath of the file/dir to be checked
Returns
Status of the file/dir check
Return values
-2Permission denied to check attributes of file/dir
-1Error in reading file/dir
0File/dir is not world-writable
1File/dir is world-writable