Module: kamailio
Branch: 4.4
Commit: a32af10e91e72dd2b29e143100c8707c0655784c
URL:
https://github.com/kamailio/kamailio/commit/a32af10e91e72dd2b29e143100c8707…
Author: Lucian Balaceanu <lucian.balaceanu(a)1and1.ro>
Committer: Lucian Balaceanu <lucian.balaceanu(a)1and1.ro>
Date: 2017-04-20T14:33:50+03:00
carrierroute: fix in check if conf file writable
---
Modified: modules/carrierroute/carrierroute.c
---
Diff:
https://github.com/kamailio/kamailio/commit/a32af10e91e72dd2b29e143100c8707…
Patch:
https://github.com/kamailio/kamailio/commit/a32af10e91e72dd2b29e143100c8707…
---
diff --git a/modules/carrierroute/carrierroute.c b/modules/carrierroute/carrierroute.c
index 5f7bcd0..f91592d 100644
--- a/modules/carrierroute/carrierroute.c
+++ b/modules/carrierroute/carrierroute.c
@@ -231,8 +231,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;
}