• Robert Sesek's avatar
    [Mac] Preserve symbolic link in the copy_bundle_data tool. · 6a008993
    Robert Sesek authored
    The copy_bundle_data tool is implemented in terms of pax for directories
    and ln hard links for files. The pax command does preserve symbolic
    links within the tree that is being copied. But with the way that pax is
    invoked by the tool, cd-ing into the source, if the source is itself
    a symbolic link to a directory, the tree will be logically copied rather
    than just as a symbolic link.
    
    A similar issue exists with the non-directory symbolic link source case,
    where a hard link will be produced instead of a symbolic link.
    
    Fix both of these cases by specifically testing if the source is a
    symbolic link and then re-creating it if so.
    
    Bug: 955936
    Change-Id: I69cf96878e59b0b7b121ae46cba5bc1e81f261ae
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1626269Reviewed-by: default avatarSylvain Defresne <sdefresne@chromium.org>
    Reviewed-by: default avatarMark Mentovai <mark@chromium.org>
    Commit-Queue: Robert Sesek <rsesek@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#662575}
    6a008993
BUILD.gn 20.2 KB