Module: kamailio
Branch: 5.0
Commit: 5afe7c2998694bc96bd6562f354f9bfca708cf8c
URL:
https://github.com/kamailio/kamailio/commit/5afe7c2998694bc96bd6562f354f9bf…
Author: Lucian Balaceanu <lucian.balaceanu(a)1and1.ro>
Committer: Lucian Balaceanu <lucian.balaceanu(a)1and1.ro>
Date: 2017-04-20T14:53:44+03:00
carrierroute: fix in check if conf file writable
(cherry picked from commit f06ffc51d653448d1712dd9752899ca33ef39db3)
---
Modified: src/modules/carrierroute/carrierroute.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5afe7c2998694bc96bd6562f354f9bf…
Patch:
https://github.com/kamailio/kamailio/commit/5afe7c2998694bc96bd6562f354f9bf…
---
diff --git a/src/modules/carrierroute/carrierroute.c
b/src/modules/carrierroute/carrierroute.c
index 05a90c4..7f477cf 100644
--- a/src/modules/carrierroute/carrierroute.c
+++ b/src/modules/carrierroute/carrierroute.c
@@ -230,8 +230,8 @@ static int mod_init(void) {
}
if( !( fs.st_mode & S_IWOTH) &&
- !((fs.st_mode & S_IWGRP) && (fs.st_gid == uid)) &&
- !((fs.st_mode & S_IWUSR) && (fs.st_uid == gid))) {
+ !((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);
return -1;
}