From 1f7e99be09308ee48f5bce65739ef2e7782edd34 Mon Sep 17 00:00:00 2001 From: jpandre Date: Wed, 7 Nov 2007 09:21:17 +0000 Subject: [PATCH] Cancelled incompatibility O_RDWR and O_WRONLY for open() --- src/ntfs-3g.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index 7a99cab2..2df0e21a 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -607,9 +607,6 @@ static int ntfs_fuse_open(const char *org_path, int accesstype; struct SECURITY_CONTEXT security; - /* O_WRONLY and O_RDWR are incompatible */ - if ((fi->flags & O_WRONLY) && (fi->flags & O_RDWR)) - return (-EINVAL); stream_name_len = ntfs_fuse_parse_path(org_path, &path, &stream_name); if (stream_name_len < 0) return stream_name_len;