Module: kamailio
Branch: 5.3
Commit: 77a8fab36f878938cfd1b630439b9d0bde2f975b
URL:
https://github.com/kamailio/kamailio/commit/77a8fab36f878938cfd1b630439b9d0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-02T09:47:05+02:00
carrierroute: more details on error message checking file permissions
- GH #2369
(cherry picked from commit 31c7493d0d822239a76df4b504b2c319de09c19c)
---
Modified: src/modules/carrierroute/carrierroute.c
---
Diff:
https://github.com/kamailio/kamailio/commit/77a8fab36f878938cfd1b630439b9d0…
Patch:
https://github.com/kamailio/kamailio/commit/77a8fab36f878938cfd1b630439b9d0…
---
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;
}
}