summaryrefslogtreecommitdiffstats
path: root/socket_server.c
diff options
context:
space:
mode:
authorAndreas Eversberg2009-10-27 07:56:59 +0100
committerAndreas Eversberg2009-10-27 07:56:59 +0100
commit8994874d7bcb1eff9ee833fb22e4910cc365f456 (patch)
tree143d370a0a65449dfb7c9dd5e00cbb8841a250a9 /socket_server.c
parentFixes and improves parsing of config file. (diff)
parentadded owner / group options to options.conf (diff)
downloadlcr-8994874d7bcb1eff9ee833fb22e4910cc365f456.tar.gz
lcr-8994874d7bcb1eff9ee833fb22e4910cc365f456.tar.xz
lcr-8994874d7bcb1eff9ee833fb22e4910cc365f456.zip
Merge branch 'master' of ssh://jolly@www.mISDN.org/var/git/lcr
Conflicts: README
Diffstat (limited to 'socket_server.c')
-rw-r--r--socket_server.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/socket_server.c b/socket_server.c
index 7a08680..a33f626 100644
--- a/socket_server.c
+++ b/socket_server.c
@@ -64,8 +64,12 @@ int admin_init(void)
return(-1);
}
if (chmod(socket_name, options.socketrights) < 0) {
- PERROR("Failed to change socket rigts to %d. (errno=%d)\n", options.socketrights, errno);
+ PERROR("Failed to change socket rights to %d. (errno=%d)\n", options.socketrights, errno);
}
+ if (chown(socket_name, options.socketuser, options.socketgroup) < 0) {
+ PERROR("Failed to change socket user/group to %d/%d. (errno=%d)\n", options.socketuser, options.socketgroup, errno);
+ }
+
return(0);
}