projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0e8fbd
)
NETCFG: make shure files exist with proper permissions.
author
Wilfried Goesgens
<dothebart@citadel.org>
Mon, 10 Jun 2013 17:43:39 +0000
(19:43 +0200)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Mon, 10 Jun 2013 17:43:39 +0000
(19:43 +0200)
citadel/netconfig.c
patch
|
blob
|
history
diff --git
a/citadel/netconfig.c
b/citadel/netconfig.c
index 9e3fdc9cb84265f29908c3b072811c4246181d93..d1a7539ff2d721f7ffc9976450bbec42c8f74e3a 100644
(file)
--- a/
citadel/netconfig.c
+++ b/
citadel/netconfig.c
@@
-176,6
+176,9
@@
int ReadRoomNetConfigFile(OneRoomNetCfg **pOneRNCfg, char *filename)
*pOneRNCfg = NULL;
return 0;
}
+ fchown(fd, CTDLUID, (-1));
+ fchmod(fd, 0600);
+
if (*pOneRNCfg != NULL)
{
OneRNCfg = *pOneRNCfg;