about summary refs log tree commit diff
path: root/Functions
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-07-25 20:15:38 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-07-25 20:15:38 +0000
commit303a089a8e3402d3d38e8d0b2b424c2ee93e06e7 (patch)
tree40022039e0ee849bd0bd88db72fc05f758947687 /Functions
parent1f27eed7b15a0843056bec1281fa296642056177 (diff)
downloadzsh-303a089a8e3402d3d38e8d0b2b424c2ee93e06e7.tar.gz
zsh-303a089a8e3402d3d38e8d0b2b424c2ee93e06e7.tar.xz
zsh-303a089a8e3402d3d38e8d0b2b424c2ee93e06e7.zip
attempt to remove executable permission, part 3
Diffstat (limited to 'Functions')
-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..0058382b3
--- /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
+