diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2007-08-21 16:39:53 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2007-08-21 16:39:53 +0400 |
commit | f5f0ae3e262d87de3097b79291cb349e65dc234d (patch) | |
tree | 06d7737594a03a5b761ff16d3bbb0073d808060d /winsup | |
parent | 1b61bf152b3972c6afd3f938d7654c7738b1c2bc (diff) |
* syscalls.cc (unlink_nt): Drop one local FILE_BASIC_INFORMATION struct.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/syscalls.cc | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 7ed188da2..f1caebe57 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,9 @@ 2007-08-21 Corinna Vinschen <corinna@vinschen.de> + * syscalls.cc (unlink_nt): Drop one local FILE_BASIC_INFORMATION struct. + +2007-08-21 Corinna Vinschen <corinna@vinschen.de> + * ntdll.h (NtNotifyChangeDirectoryFile): Declare. (NtQueryAttributesFile): Move to maintain alphabetical order of declarations. Add comment to note that timestamp information returned diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 905f77425..8afa025b0 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -479,7 +479,6 @@ unlink_nt (path_conv &pc) /* Get rid of read-only attribute. */ if (access & FILE_WRITE_ATTRIBUTES) { - FILE_BASIC_INFORMATION fbi; fbi.CreationTime.QuadPart = fbi.LastAccessTime.QuadPart = fbi.LastWriteTime.QuadPart = fbi.ChangeTime.QuadPart = 0LL; fbi.FileAttributes = (pc.file_attributes () & ~FILE_ATTRIBUTE_READONLY) |