]> granicus.if.org Git - python/commitdiff
ST_MODE should be ST_MTIME in utime call in copystat. Thanks to Mike Orr.
authorGuido van Rossum <guido@python.org>
Fri, 2 Oct 1998 03:16:08 +0000 (03:16 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 2 Oct 1998 03:16:08 +0000 (03:16 +0000)
Lib/shutil.py

index 6d1857033c2241cbe705c61d8f2dee2153c43046..752c1ec57cc9506f12e0e14bb5f83bb2d7cb00fa 100644 (file)
@@ -37,7 +37,7 @@ def copystat(src, dst):
     st = os.stat(src)
     mode = stat.S_IMODE(st[stat.ST_MODE])
     os.chmod(dst, mode)
-    os.utime(dst, (st[stat.ST_ATIME], st[stat.ST_MODE]))
+    os.utime(dst, (st[stat.ST_ATIME], st[stat.ST_MTIME]))
 
 
 def copy(src, dst):