diff options
author | phk <phk@FreeBSD.org> | 1994-09-20 07:24:51 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1994-09-20 07:24:51 +0000 |
commit | 61ca3e5cab982a6c4de55a3abc1aca6c8da81ab9 (patch) | |
tree | 5c051f771e000e025dee42dbda2dcd032423aab5 /bin | |
parent | 0969323e727a34e09e05eedab4efdb672bf08f7e (diff) | |
download | FreeBSD-src-61ca3e5cab982a6c4de55a3abc1aca6c8da81ab9.zip FreeBSD-src-61ca3e5cab982a6c4de55a3abc1aca6c8da81ab9.tar.gz |
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.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ln/ln.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ln/ln.c b/bin/ln/ln.c index 9be9824..f972ea8 100644 --- a/bin/ln/ln.c +++ b/bin/ln/ln.c @@ -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); } |