aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mds.c')
-rw-r--r--src/mds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mds.c b/src/mds.c
index 8651cdf..c86b08a 100644
--- a/src/mds.c
+++ b/src/mds.c
@@ -167,7 +167,7 @@ int main(int argc_, char** argv_)
address.sun_family = AF_UNIX;
strcpy(address.sun_path, pathname);
unlink(pathname);
- fd = socket(AF_UNIX, SOCK_STREAM, 0);
+ fail_if ((fd = socket(AF_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);