Re: mkdir when target exists and is a broken symlink
From:
Eric Blake
Subject:
Re: mkdir when target exists and is a broken symlink
Date:
Wed, 18 May 2005 14:16:14 +0000
> > I note that 'touch foo' when foo is a broken symlink will create the
> > link destination if possible (though without making any directories,
> > obviously).
>
> POSIX requires this, but it is arguably a misfeature, due to the
> security issues mentioned. Perhaps we should add an option to "touch"
> to disable it?
See my earlier reply to why I think POSIX requires the exact opposite - that
`touch dangling' must fail, not create the new file pointed to by dangling.
--
Eric Blake