unix-socket-create.c revision d198989a7cac917ba0bd341a76d94e8a32267074
f46fce070a135ec6bb3078c104f32651ea84cdefTimo Sirainen/* Copyright (c) 2005-2008 Dovecot authors, see the included COPYING file */
539977f9257bd8985be5a8093658da266ae9cd19Timo Sirainenint unix_socket_create(const char *path, int mode,
311d3dd2078c1b711a0cef013ba43a94078c115cTimo Sirainen fd = net_listen_unix_unlink_stale(path, backlog);
311d3dd2078c1b711a0cef013ba43a94078c115cTimo Sirainen i_error("net_listen_unix(%s) failed: %m", path);
539977f9257bd8985be5a8093658da266ae9cd19Timo Sirainen /* set correct permissions */