aboutsummaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2001-09-09 21:57:44 +0000
committerCorinna Vinschen <corinna@vinschen.de>2001-09-09 21:57:44 +0000
commite3a4f8ef6fb90f4e5c2fd0082cf3b40d95fbce07 (patch)
tree1a75cfe6790b9b312be5ca0c9f7dae26727e4cf0 /winsup
parent3800a9e7d7906a46433c33eb8694b93b1c78bc6f (diff)
downloadnewlib-e3a4f8ef6fb90f4e5c2fd0082cf3b40d95fbce07.zip
newlib-e3a4f8ef6fb90f4e5c2fd0082cf3b40d95fbce07.tar.gz
newlib-e3a4f8ef6fb90f4e5c2fd0082cf3b40d95fbce07.tar.bz2
* pwdgrp.h (pwdgrp_check::set_last_modified): Call GetFileTime()
instead of GetFileInformationByHandle().
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/pwdgrp.h6
2 files changed, 7 insertions, 4 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 22ae600..b24cb26 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+Sun Sep 9 23:09:00 2001 Corinna Vinschen <corinna@vinschen.de>
+
+ * pwdgrp.h (pwdgrp_check::set_last_modified): Call GetFileTime()
+ instead of GetFileInformationByHandle().
+
Sun Sep 9 15:59:53 2001 Christopher Faylor <cgf@cygnus.com>
* heap.h (inheap): Rewrite macro to accomodate removal of brk macros
diff --git a/winsup/cygwin/pwdgrp.h b/winsup/cygwin/pwdgrp.h
index bc27c7b..38a7c80 100644
--- a/winsup/cygwin/pwdgrp.h
+++ b/winsup/cygwin/pwdgrp.h
@@ -49,9 +49,7 @@ public:
if (!file_w32[0])
strcpy (file_w32, cygheap->fdtab[fileno (f)]->get_win32_name ());
- BY_HANDLE_FILE_INFORMATION inf;
- if (GetFileInformationByHandle (cygheap->fdtab[fileno (f)]->get_handle (),
- &inf))
- last_modified = inf.ftLastWriteTime;
+ GetFileTime (cygheap->fdtab[fileno (f)]->get_handle (),
+ NULL, NULL, &last_modified);
}
};