Ignore:
Timestamp:
Oct 15, 2009, 5:12:45 PM (10 years ago)
Author:
gb
Message:

lisp_open: don't ask for more than some combination of GENERIC_READ/
GENERIC_WRITE access.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/windows-calls.c

    r12714 r13025  
    195195
    196196  if ((flag & _O_WRONLY) == _O_WRONLY) {
    197     dwDesiredAccess |= GENERIC_WRITE | FILE_WRITE_DATA |
    198       FILE_READ_ATTRIBUTES | FILE_WRITE_ATTRIBUTES;
     197    dwDesiredAccess |= GENERIC_WRITE;
    199198  } else if ((flag & _O_RDWR) == _O_RDWR) {
    200     dwDesiredAccess |= GENERIC_WRITE|GENERIC_READ | FILE_READ_DATA |
    201       FILE_WRITE_DATA | FILE_READ_ATTRIBUTES | FILE_WRITE_ATTRIBUTES;
     199    dwDesiredAccess |= GENERIC_WRITE|GENERIC_READ;
    202200  } else {
    203     dwDesiredAccess |= GENERIC_READ | FILE_READ_DATA | FILE_READ_ATTRIBUTES |
    204       FILE_WRITE_ATTRIBUTES;
     201    dwDesiredAccess |= GENERIC_READ;
    205202  }
    206203   
Note: See TracChangeset for help on using the changeset viewer.