/* Copyright (c) 2008-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "fdatasync-path.h"
#include <fcntl.h>
#include <unistd.h>
{
/* Directories need to be opened as read-only.
fsync() doesn't appear to care about it. */
if (fd == -1)
return -1;
ignore the problem. */
/* e.g. NetBSD */
/* e.g. Linux+CIFS */
} else {
ret = -1;
}
}
i_close_fd(&fd);
return ret;
}