1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 05:16:05 +01:00

attempt to remove executable permission, part 3

This commit is contained in:
Peter Stephenson 2007-07-25 20:15:38 +00:00
parent 1f27eed7b1
commit 303a089a8e

6
Functions/Misc/harden Normal file
View file

@ -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