mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-26 21:13:11 +01:00
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
67a3d3a8d3
commit
c4278e8b60
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2928
@ -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