projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4742fa2
)
* fchmod doesn't like FD's to sockets.
author
Wilfried Göesgens
<willi@citadel.org>
Sun, 19 Aug 2007 16:46:23 +0000
(16:46 +0000)
committer
Wilfried Göesgens
<willi@citadel.org>
Sun, 19 Aug 2007 16:46:23 +0000
(16:46 +0000)
citadel/sysdep.c
patch
|
blob
|
history
diff --git
a/citadel/sysdep.c
b/citadel/sysdep.c
index aee0907dfd70652d668ba0e319099477de8fb63d..cd7f12107a5a15da0f3841d489cf7fda72b93cfe 100644
(file)
--- a/
citadel/sysdep.c
+++ b/
citadel/sysdep.c
@@
-351,7
+351,7
@@
int ig_uds_server(char *sockpath, int queue_len, char **errormessage)
int s;
int i;
int actual_queue_len;
-
+ long ret, ret2;
actual_queue_len = queue_len;
if (actual_queue_len < 5) actual_queue_len = 5;
@@
-407,7
+407,7
@@
int ig_uds_server(char *sockpath, int queue_len, char **errormessage)
return(-1);
}
-
fchmod(s, 0777
);
+
chmod(sockpath, S_ISGID|S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IWGRP|S_IXGRP|S_IROTH|S_IWOTH|S_IXOTH
);
return(s);
}