ST_MODE should be ST_MTIME in utime call in copystat. Thanks to Mike Orr.

This commit is contained in:
Guido van Rossum 1998-10-02 03:16:08 +00:00
parent 64e736ba4e
commit 96372a2657
1 changed files with 1 additions and 1 deletions

View 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):