From 8d1c5e5537281947c9f253547fdab411acc93d5b Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 28 Dec 2015 23:20:54 +0100 Subject: how silly, I did not remove the line when I adapted it (whence I copied it) to leave the current user the owner MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/satd.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/satd.c') diff --git a/src/satd.c b/src/satd.c index 42a2074..f7b6360 100644 --- a/src/satd.c +++ b/src/satd.c @@ -90,7 +90,6 @@ create_socket(struct sockaddr_un *address) does_not_exist: t ((fd = socket(PF_UNIX, SOCK_STREAM, 0)) == -1); t (fchmod(fd, S_IRWXU) == -1); - t (fchown(fd, getuid(), getgid()) == -1); t (bind(fd, (struct sockaddr *)address, sizeof(*address)) == -1); /* EADDRINUSE just means that the file already exists, not that it is actually used. */ bound = 1; -- cgit v1.2.3-70-g09d2