telmich/cdist — pull request #45 by bekoeppel (2012-02-25 20:10:57+00:00)
Title: added -h option to ln when creating a link

imagine:
> ls
./dirA

> ls ./dirA
// nothing in here

> ln -s -f dirA link

> ls
./dirA
./link -> dirA

now cdist runs again and would execute 'ln -s -f dirA link' again...

> ln -s -f dirA link

> ls
./dirA
./link -> dirA

> ls ./dirA
link -> dirA
// now suddenly we have this link to dirA in here

using 'ln -s -f -h dirA link' prevents this from happening