fix ln to accept -f again. Thanks Bruce. Seems that Joe Grosch isn't

quite as safe as I thought.  I will have to look much closer on his
patches.  Damn.
This commit is contained in:
phk 1994-09-20 07:24:51 +00:00
parent 0969323e72
commit 61ca3e5cab

View File

@ -148,7 +148,7 @@ linkit(target, source, isdir)
* If the file exists, and -f was specified, unlink it.
* Attempt the link.
*/
if (fflag && exists && (unlink(source) || (*linkf)(target, source))) {
if ((fflag && exists && unlink(source)) || (*linkf)(target, source)) {
warn("%s", source);
return (1);
}