]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
pullup:
authorAndreas Gustafsson <source@isc.org>
Wed, 5 Sep 2001 17:29:25 +0000 (17:29 +0000)
committerAndreas Gustafsson <source@isc.org>
Wed, 5 Sep 2001 17:29:25 +0000 (17:29 +0000)
isc_file_getmodtime() does not need write access to file

lib/isc/win32/file.c

index a70e9925e83e03185d66272346bf323b29897a3d..10926952fdc642ecd75ce02c66a801191b2cf8db 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: file.c,v 1.20.2.1 2001/09/05 00:38:09 gson Exp $ */
+/* $Id: file.c,v 1.20.2.2 2001/09/05 17:29:25 gson Exp $ */
 
 #include <config.h>
 
@@ -205,7 +205,7 @@ isc_file_getmodtime(const char *file, isc_time_t *time) {
        REQUIRE(file != NULL);
        REQUIRE(time != NULL);
 
-       if ((fh = open(file, _O_RDWR | _O_BINARY)) < 0)
+       if ((fh = open(file, _O_RDONLY | _O_BINARY)) < 0)
                return (isc__errno2result(errno));
 
        if (!GetFileTime((HANDLE) _get_osfhandle(fh),