Symlink() bug

ddl at husc6.UUCP ddl at husc6.UUCP
Mon Jul 14 09:01:56 AEST 1986


In article <1500018 at uokmet.UUCP>, root at uokmet.UUCP writes:
> 
> Subject: symlink bug
> Index:	sys/sys3.c 2.9bsd
> 
> Description:
> 	Symlink() always creates a link to "something", even if the original
> 	file doesn't exist.
> 
	This is not a bug; do not apply the fix shown.  It is often
necessary/useful to create symlinks to files that do not (yet) exist.
We do it all the time for log files which can be removed by cron.  In
any event, the proposed fix would not prevent symlinks which point
at nothing as it is still possible to remove the pointed-to file
after the fact.  If you are really worried about this, modify ln(1)
to check for the source file, but don't bother posting the change.

					Dan Lanciani
					ddl at harvard.*



More information about the Comp.bugs.2bsd mailing list