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:
Poul-Henning Kamp 1994-09-20 07:24:51 +00:00
parent 67a3d3a8d3
commit c4278e8b60
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2928

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);
}