From 68fc3c2642fc37436fada09e1b56836587e295da Mon Sep 17 00:00:00 2001 From: "cantab.net!aia21" Date: Mon, 6 Oct 2003 11:38:25 +0000 Subject: [PATCH] Make stat and ioctl return error instead of silently succeeding. This probably breaks Cygwin but never mind... (Logical change 1.188) --- libntfs/win32_io.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libntfs/win32_io.c b/libntfs/win32_io.c index f0ef4076..9ae868d8 100644 --- a/libntfs/win32_io.c +++ b/libntfs/win32_io.c @@ -381,7 +381,7 @@ static int ntfs_device_win32_stat(struct ntfs_device *dev, struct stat *buf) { fprintf(stderr, "win32_fstat() unimplemented\n"); errno = ENOTSUP; - return 0; + return -1; } static int ntfs_device_win32_ioctl(struct ntfs_device *dev, int request, @@ -389,7 +389,7 @@ static int ntfs_device_win32_ioctl(struct ntfs_device *dev, int request, { fprintf(stderr, "win32_ioctl() unimplemented\n"); errno = ENOTSUP; - return 0; + return -1; } extern s64 ntfs_pread(struct ntfs_device *dev, const s64 pos, s64 count, @@ -410,7 +410,7 @@ static s64 ntfs_device_win32_pwrite(struct ntfs_device *dev, const void *buf, return ntfs_pwrite(dev, offset, count, buf); } -struct ntfs_device_operations ntfs_device_win32_ops = { +struct ntfs_device_operations ntfs_device_win32_io_ops = { .open = ntfs_device_win32_open, .close = ntfs_device_win32_close, .seek = ntfs_device_win32_seek,