Skip to content

Commit

Permalink
carrierroute: more details on error message checking file permissions
Browse files Browse the repository at this point in the history
- GH #2369
  • Loading branch information
miconda committed Jun 29, 2020
1 parent bcae4ab commit 31c7493
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/carrierroute/carrierroute.c
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 31c7493

Please sign in to comment.