win: remove dead code related to BACKUP_SEMANTICS
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é <saghul@gmail.com>
Reviewed-by: Bert Belder <bertbelder@gmail.com>
This commit is contained in:
parent
c2f0e4f64e
commit
7dfa54d6f8
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user