fdatasync-path.c revision ff3e079cdcd74e64eb35af0bc361e75d2ea03822
/* Copyright (c) 2008 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "fdatasync-path.h"
#include <fcntl.h>
#include <unistd.h>
int fdatasync_path(const char *path)
{
/* Directories need to be opened as read-only.
fsync() doesn't appear to care about it. */
if (fd == -1)
return -1;
ret = -1;
return ret;
}