fdatasync-path.c revision bb41db071dcbc51a6f170d7f44afb74adb00f89a
/* 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;
}