about summary refs log tree commit diff
path: root/Functions/Misc/harden
diff options
context:
space:
mode:
Diffstat (limited to 'Functions/Misc/harden')
-rw-r--r--Functions/Misc/harden6
1 files changed, 6 insertions, 0 deletions
diff --git a/Functions/Misc/harden b/Functions/Misc/harden
new file mode 100644
index 000000000..c02689362
--- /dev/null
+++ b/Functions/Misc/harden
@@ -0,0 +1,6 @@
+#! /bin/sh
+# harden a link (convert it to a singly linked file)
+cp $1 $1.foo
+rm $1
+mv $1.foo $1
+