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:
parent
0969323e72
commit
61ca3e5cab
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user