Improve commentary for the last commit.
authorEli Zaretskii <eliz@gnu.org>
Fri, 5 Oct 2012 09:21:51 +0000 (11:21 +0200)
committerEli Zaretskii <eliz@gnu.org>
Fri, 5 Oct 2012 09:21:51 +0000 (11:21 +0200)
src/w32.c

index 5809e3f..f17c06e 100644 (file)
--- a/src/w32.c
+++ b/src/w32.c
@@ -3953,6 +3953,9 @@ utime (const char *name, struct utimbuf *times)
 
   /* Need write access to set times.  */
   fh = CreateFile (name, FILE_WRITE_ATTRIBUTES,
+                  /* If NAME specifies a directory, FILE_SHARE_DELETE
+                     allows other processes to delete files inside it,
+                     while we have the directory open.  */
                   FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
                   0, OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, NULL);
   if (fh != INVALID_HANDLE_VALUE)