log_Printf(LogERROR, "Local: Unable to listen to socket - BUNDLE overload?\n");
log_Printf(LogERROR, "Local: Unable to listen to socket -" " BUNDLE overload?\n");
server_LocalOpen(struct bundle *bundle, const char *name, mode_t mask){  int s;  if (server.rm && !strcmp(server.rm, name)) {    if (chmod(server.rm, 0777 & ~mask))      log_Printf(LogERROR, "Local: chmod: %s\n", strerror(errno));    return 0;  }  memset(&server.ifsun, '\0', sizeof server.ifsun);  server.ifsun.sun_len = strlen(name);  if (server.ifsun.sun_len > sizeof server.ifsun.sun_path - 1) {    log_Printf(LogERROR, "Local: %s: Path too long\n", name);    return 2;  }  server.ifsun.sun_family = AF_LOCAL;  strcpy(server.ifsun.sun_path, name);  s = ID0socket(PF_LOCAL, SOCK_STREAM, 0);  if (s < 0) {    log_Printf(LogERROR, "Local: socket: %s\n", strerror(errno));    return 3;  }  setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &s, sizeof s);  if (mask != (mode_t)-1)    mask = umask(mask);  if (bind(s, (struct sockaddr *)&server.ifsun, sizeof server.ifsun) < 0) {    if (mask != (mode_t)-1)      umask(mask);    log_Printf(LogWARN, "Local: bind: %s\n", strerror(errno));    close(s);    return 4;  }  if (mask != (mode_t)-1)    umask(mask);  if (listen(s, 5) != 0) {    log_Printf(LogERROR, "Local: Unable to listen to socket - BUNDLE overload?\n");    close(s);    ID0unlink(name);    return 5;  }  server_Close(bundle);  server.fd = s;  server.rm = server.ifsun.sun_path;  log_Printf(LogPHASE, "Listening at local socket %s.\n", name);  return 0;}