From 7dfa54d6f8f2c5544829828b9da1dbf1aa77963e Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Wed, 23 Nov 2016 07:27:34 -0800 Subject: [PATCH] win: remove dead code related to BACKUP_SEMANTICS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove several conditionals which appear to carefully set or clear FILE_FLAG_BACKUP_SEMANTICS, but since 4365896, FILE_FLAG_BACKUP_SEMANTICS is unconditionally ORed into the attributes before CreateFileW() is called. PR-URL: https://github.com/libuv/libuv/pull/1149 Reviewed-By: Saúl Ibarra Corretgé Reviewed-by: Bert Belder --- src/win/fs.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/win/fs.c b/src/win/fs.c index dc0ac89a..6902d4f1 100644 --- a/src/win/fs.c +++ b/src/win/fs.c @@ -403,7 +403,6 @@ void fs__open(uv_fs_t* req) { switch (flags & (_O_RDONLY | _O_WRONLY | _O_RDWR)) { case _O_RDONLY: access = FILE_GENERIC_READ; - attributes |= FILE_FLAG_BACKUP_SEMANTICS; break; case _O_WRONLY: access = FILE_GENERIC_WRITE; @@ -418,7 +417,6 @@ void fs__open(uv_fs_t* req) { if (flags & _O_APPEND) { access &= ~FILE_WRITE_DATA; access |= FILE_APPEND_DATA; - attributes &= ~FILE_FLAG_BACKUP_SEMANTICS; } /*