unpackPhase: Handle sources starting with a hyphen

This commit is contained in:
Shea Levy 2018-01-24 21:58:57 -08:00
parent bf87e56cda
commit f83b6e1130
No known key found for this signature in database
GPG Key ID: 5C0BD6957D86FE27

View File

@ -769,7 +769,7 @@ _defaultUnpack() {
# We can't preserve hardlinks because they may have been
# introduced by store optimization, which might break things
# in the build.
cp -pr --reflink=auto "$fn" "$(stripHash "$fn")"
cp -pr --reflink=auto -- "$fn" "$(stripHash "$fn")"
else