Module: kamailio
Branch: master
Commit: f06ffc51d653448d1712dd9752899ca33ef39db3
URL:
https://github.com/kamailio/kamailio/commit/f06ffc51d653448d1712dd9752899ca…
Author: Lucian Balaceanu <lucian.balaceanu(a)1and1.ro>
Committer: Lucian Balaceanu <lucian.balaceanu(a)1and1.ro>
Date: 2017-04-20T13:59:23+03:00
carrierroute: fix in check if conf file writable
---
Modified: src/modules/carrierroute/carrierroute.c
---
Diff:
https://github.com/kamailio/kamailio/commit/f06ffc51d653448d1712dd9752899ca…
Patch:
https://github.com/kamailio/kamailio/commit/f06ffc51d653448d1712dd9752899ca…
---
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;
}