Revert "Set sticky bit on socket"

This reverts commit 15ae398ea5.

Setting the sticky bit on a file is not really portable and
causes more problems than it solves.

The reason why this was done in the first place, is that the
XDG Base Directory Specification states that files with the
sticky bit set should not be touched by periodic cleanup
procedures.

Close #13
This commit is contained in:
Marc André Tanner 2016-01-25 08:17:57 +01:00
parent f71f02e6d6
commit 5b9fcf5e52
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ static int server_create_socket(const char *name) {
int r = bind(fd, (struct sockaddr*)&sockaddr, socklen);
umask(mask);
if (r == -1 || chmod(sockaddr.sun_path, S_ISVTX|S_IRUSR|S_IWUSR) == -1) {
if (r == -1) {
close(fd);
return -1;
}