Module: kamailio
Branch: master
Commit: 31c7493d0d822239a76df4b504b2c319de09c19c
URL:
https://github.com/kamailio/kamailio/commit/31c7493d0d822239a76df4b504b2c31…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-06-29T08:20:33+02:00
carrierroute: more details on error message checking file permissions
- GH #2369
---
Modified: src/modules/carrierroute/carrierroute.c
---
Diff:
https://github.com/kamailio/kamailio/commit/31c7493d0d822239a76df4b504b2c31…
Patch:
https://github.com/kamailio/kamailio/commit/31c7493d0d822239a76df4b504b2c31…
---
diff --git a/src/modules/carrierroute/carrierroute.c
b/src/modules/carrierroute/carrierroute.c
index 7d557c9852..79f8f2e2dc 100644
--- a/src/modules/carrierroute/carrierroute.c
+++ b/src/modules/carrierroute/carrierroute.c
@@ -216,7 +216,8 @@ static int mod_init(void) {
if( !( fs.st_mode & S_IWOTH) &&
!((fs.st_mode & S_IWGRP) && (fs.st_gid == gid)) &&
!((fs.st_mode & S_IWUSR) && (fs.st_uid == uid))) {
- LM_ERR("config file %s not writable\n", config_file);
+ LM_ERR("config file %s not writable or not owned by uid: %d and gid:
%d\n",
+ config_file, uid, gid);
return -1;
}
}