Browse code

carrierroute: more details on error message checking file permissions

- GH #2369

Daniel-Constantin Mierla authored on 29/06/2020 06:19:34
Showing 1 changed files
... ...
@@ -216,7 +216,8 @@ static int mod_init(void) {
216 216
 		if( !( fs.st_mode & S_IWOTH) &&
217 217
 			!((fs.st_mode & S_IWGRP) && (fs.st_gid == gid)) &&
218 218
 			!((fs.st_mode & S_IWUSR) && (fs.st_uid == uid))) {
219
-				LM_ERR("config file %s not writable\n", config_file);
219
+				LM_ERR("config file %s not writable or not owned by uid: %d and gid: %d\n",
220
+						config_file, uid, gid);
220 221
 				return -1;
221 222
 		}
222 223
 	}