-
- /* Setting right permission */
- chmod(DEFAULTARPATH, 0444);
-
-
- /* Reading configuration */
- if(ReadConfig(modules, cfgfile, ar_commands, active_responses) < 0)
- {
- return(OS_INVALID);
+ /* Set right permission */
+ if (chmod(DEFAULTARPATH, 0440) == -1) {
+ merror(CHMOD_ERROR, ARGV0, DEFAULTARPATH, errno, strerror(errno));
+ return (OS_INVALID);