summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/deref-symlinks
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/bin/deref-symlinks')
-rwxr-xr-xMaster/tlpkg/bin/deref-symlinks2
1 files changed, 1 insertions, 1 deletions
diff --git a/Master/tlpkg/bin/deref-symlinks b/Master/tlpkg/bin/deref-symlinks
index 0a770a7f47d..b012f7d748e 100755
--- a/Master/tlpkg/bin/deref-symlinks
+++ b/Master/tlpkg/bin/deref-symlinks
@@ -15,7 +15,7 @@ for f in "$@"; do
test -h "$f" || continue # skip non-symlinks
test -f "$f" || continue # skip links to anything but regular files
- cp --dereference "$f" "$f".file # expand link
+ cp -p --dereference "$f" "$f".file # expand link
mv "$f" "$f".link # move link out of the way
mv -v "$f".file "$f" # replace with regular file
$savelinks || rm "$f".link # remove link unless keeping