• Greg Thompson's avatar
    Don't cross junction points when deleting old temp dirs. · a26f896b
    Greg Thompson authored
    During startup, the mini_installer attempts to free up disk space left
    occupied by previous runs of the installer that may have failed to
    perform their own cleanup. Such freeing shouldn't cross junction points
    or links or other similar filesystem constructs, since such would not
    have been created by a previous run. This CL simply skips over any
    directories that have reparse points -- directories created by the
    installer should not have any.
    
    BUG=1100280
    R=waffles@chromium.org
    
    Change-Id: I20d874db50bd11faeac8e03522d162abcae095b0
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2276207
    Commit-Queue: Greg Thompson <grt@chromium.org>
    Commit-Queue: Joshua Pawlicki <waffles@chromium.org>
    Auto-Submit: Greg Thompson <grt@chromium.org>
    Reviewed-by: default avatarJoshua Pawlicki <waffles@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#784428}
    a26f896b
mini_installer.cc 35.4 KB