Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2007-08-21 16:39:53 +0400
committerCorinna Vinschen <corinna@vinschen.de>2007-08-21 16:39:53 +0400
commitf5f0ae3e262d87de3097b79291cb349e65dc234d (patch)
tree06d7737594a03a5b761ff16d3bbb0073d808060d /winsup
parent1b61bf152b3972c6afd3f938d7654c7738b1c2bc (diff)
* syscalls.cc (unlink_nt): Drop one local FILE_BASIC_INFORMATION struct.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/syscalls.cc1
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)