bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch/* Copyright (c) 2005-2018 Dovecot authors, see the included COPYING file */
66bcc2a2f65576211f2f55edbe61130b96287fcdTimo Sirainenint unix_socket_create(const char *path, int mode,
d198989a7cac917ba0bd341a76d94e8a32267074Timo Sirainen fd = net_listen_unix_unlink_stale(path, backlog);
66bcc2a2f65576211f2f55edbe61130b96287fcdTimo Sirainen i_error("net_listen_unix(%s) failed: %m", path);
66bcc2a2f65576211f2f55edbe61130b96287fcdTimo Sirainen /* set correct permissions */