···463463 if [ -d "$fn" ]; then
464464465465 stripHash "$fn"
466466- cp -prd --no-preserve=timestamps "$fn" $strippedName
466466+ # We can't preserve hardlinks because they may have been introduced by
467467+ # store optimization, which might break things in the build
468468+ cp -pr --reflink=auto --no-preserve=timestamps "$fn" $strippedName
467469468470 else
469471