diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2015-12-26 13:23:07 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2015-12-26 13:23:07 +0100 |
commit | 45ad2ece85e55d50653eddd7faef93ee9f7b1adb (patch) | |
tree | 75bba6dfbf4f49c79445b52398ea8fa4df773d79 | |
parent | update todo (diff) | |
download | mds-45ad2ece85e55d50653eddd7faef93ee9f7b1adb.tar.gz mds-45ad2ece85e55d50653eddd7faef93ee9f7b1adb.tar.bz2 mds-45ad2ece85e55d50653eddd7faef93ee9f7b1adb.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r-- | src/mds.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -190,8 +190,8 @@ int main(int argc_, char** argv_) unlink(pathname); fail_if ((fd = socket(PF_UNIX, SOCK_STREAM, 0)) < 0); fail_if (fchmod(fd, S_IRWXU) < 0); + fail_if (fchown(fd, getuid(), NOBODY_GROUP_GID) < 0); fail_if (bind(fd, (struct sockaddr*)(&address), sizeof(address)) < 0); - fail_if (chown(pathname, getuid(), NOBODY_GROUP_GID) < 0); /* XXX Isn't fchmod one line earlier better? */ /* Start listening on socket. */ fail_if (listen(fd, SOMAXCONN) < 0); |