Skip to content

Commit

Permalink
modules/connector-local: ensure socket is 0777
Browse files Browse the repository at this point in the history
  • Loading branch information
garlick committed Feb 28, 2017
1 parent 15aab84 commit a88beef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/connector-local/local.c
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,10 @@ static int listener_init (mod_local_ctx_t *ctx, char *sockpath)
flux_log_error (ctx->h, "bind");
goto error_close;
}
if (chmod (sockpath, 0777) < 0) {
flux_log_error (ctx->h, "chmod");
goto error_close;
}
if (listen (fd, LISTEN_BACKLOG) < 0) {
flux_log_error (ctx->h, "listen");
goto error_close;
Expand Down

0 comments on commit a88beef

Please sign in to comment.