diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-09-07 18:27:57 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-09-07 18:27:57 +0200 |
commit | c9ba355a695132ef31b81072ce72f98a837c9995 (patch) | |
tree | 146e02ca91366ebd01cab0e2911bcb10c1ab9416 /src | |
parent | fail if socket pathname is too long (diff) | |
download | mds-c9ba355a695132ef31b81072ce72f98a837c9995.tar.gz mds-c9ba355a695132ef31b81072ce72f98a837c9995.tar.bz2 mds-c9ba355a695132ef31b81072ce72f98a837c9995.tar.xz |
m todo
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mds.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -191,7 +191,7 @@ int main(int argc_, char** argv_) fail_if ((fd = socket(PF_UNIX, SOCK_STREAM, 0)) < 0); fail_if (fchmod(fd, S_IRWXU) < 0); fail_if (bind(fd, (struct sockaddr*)(&address), sizeof(address)) < 0); - fail_if (chown(pathname, getuid(), NOBODY_GROUP_GID) < 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); |