VirtualBox

Ignore:
Timestamp:
Jul 5, 2016 1:50:26 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
108487
Message:

ValidationKit,common: Wrapped shutil.copyfile in common/utils.py as copyFileSimple, applying the buffer hack before calling it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/unittests/tdUnitTest1.py

    r61840 r62025  
    3636import re
    3737import subprocess
    38 import shutil
    3938
    4039
     
    515514        reporter.log('_hardenedCopyFile: %s -> %s (mode: %o)' % (sSrc, sDst, iMode,));
    516515        if utils.getHostOs() in [ 'win', 'os2' ]:
    517             shutil.copyfile(sSrc, sDst);
     516            utils.copyFileSimple(sSrc, sDst);
    518517            os.chmod(sDst, iMode);
    519518        else:
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette