/* Copyright (c) 2005-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "net.h"
#include "unix-socket-create.h"
#include <unistd.h>
{
int fd;
if (fd < 0) {
return -1;
}
/* set correct permissions */
i_error("chown(%s, %s, %s) failed: %m",
i_close_fd(&fd);
return -1;
}
}
return fd;
}