|
|
@ -741,7 +741,8 @@ static int get_config(struct config **conf, int *num) |
|
|
|
die("config file must be a regular file"); |
|
|
|
die("config file must be a regular file"); |
|
|
|
if (st.st_mode & S_IRWXO || st.st_mode & S_IROTH || |
|
|
|
if (st.st_mode & S_IRWXO || st.st_mode & S_IROTH || |
|
|
|
st.st_mode & S_IWOTH || st.st_mode & S_IXOTH) |
|
|
|
st.st_mode & S_IWOTH || st.st_mode & S_IXOTH) |
|
|
|
die("others may not modify, read or execute config file"); |
|
|
|
die("others may not modify, read or execute config file\n" |
|
|
|
|
|
|
|
"suggested permissions for the config file: 660"); |
|
|
|
char line[CONF_LINE_MAX]; |
|
|
|
char line[CONF_LINE_MAX]; |
|
|
|
*num = 0; |
|
|
|
*num = 0; |
|
|
|
*conf = NULL; |
|
|
|
*conf = NULL; |
|
|
|