Symlink() bug
chris at umcp-cs.UUCP
chris at umcp-cs.UUCP
Mon Jul 14 10:28:39 AEST 1986
In article <1500018 at uokmet.UUCP> root at uokmet.UUCP writes:
>Description:
> Symlink() always creates a link to "something", even if the original
> file doesn't exist.
This is not a bug.
>Fix:
> add
> ip = namei(uchar, LOOKUP, 1);
> if (ip == NULL)
> return;
You had better iput() the inode afterward---not that you should be
checking for existence of the `destination' string in the first place.
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 1516)
UUCP: seismo!umcp-cs!chris
CSNet: chris at umcp-cs ARPA: chris at mimsy.umd.edu
More information about the Comp.bugs.2bsd
mailing list