Browse code

carrierroute: fix in check if conf file writable

Lucian Balaceanu authored on 20/04/2017 10:59:23
Showing 1 changed files
... ...
@@ -230,8 +230,8 @@ static int mod_init(void) {
230 230
 		}
231 231
 
232 232
 		if( !( fs.st_mode & S_IWOTH) &&
233
-			!((fs.st_mode & S_IWGRP) && (fs.st_gid == uid)) &&
234
-			!((fs.st_mode & S_IWUSR) && (fs.st_uid == gid))) {
233
+			!((fs.st_mode & S_IWGRP) && (fs.st_gid == gid)) &&
234
+			!((fs.st_mode & S_IWUSR) && (fs.st_uid == uid))) {
235 235
 				LM_ERR("config file %s not writable\n", config_file);
236 236
 				return -1;
237 237
 		}