• Greg Thompson's avatar
    [mini_installer] Leave files with reparse points alone when deleting. · 57c82338
    Greg Thompson authored
    mini_installer recursively deletes directories left behind from previous
    runs. As it recurses through them, it may delete files with reparse
    points in those dirs. This is bad, since such files may actually be
    maliciously-created links to other entities on the filesystem. This CL
    skips anything with a reparse point during deletion -- since Chrome
    never creates files/dirs with reparse points, it shouldn't try to delete
    them.
    
    BUG=1125018
    R=wfh@chromium.org
    
    Change-Id: I9897947ed883a91758c31990ed0b9648c38d2942
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2409698
    Auto-Submit: Greg Thompson <grt@chromium.org>
    Commit-Queue: Will Harris <wfh@chromium.org>
    Reviewed-by: default avatarWill Harris <wfh@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#806715}
    57c82338
mini_installer.cc 37.8 KB