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:
parent
1f27eed7b1
commit
303a089a8e
1 changed files with 6 additions and 0 deletions
6
Functions/Misc/harden
Normal file
6
Functions/Misc/harden
Normal 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
|
||||
|
Loading…
Reference in a new issue