Page MenuHomeFreeBSD

D11167.id29874.diff
No OneTemporary

D11167.id29874.diff

Index: head/bin/ln/ln.c
===================================================================
--- head/bin/ln/ln.c
+++ head/bin/ln/ln.c
@@ -245,11 +245,11 @@
/*
* If the target is a directory (and not a symlink if hflag),
- * append the source's name.
+ * append the source's name, unless Fflag is set.
*/
- if (isdir ||
+ if (!Fflag && (isdir ||
(lstat(target, &sb) == 0 && S_ISDIR(sb.st_mode)) ||
- (!hflag && stat(target, &sb) == 0 && S_ISDIR(sb.st_mode))) {
+ (!hflag && stat(target, &sb) == 0 && S_ISDIR(sb.st_mode)))) {
if (strlcpy(bbuf, source, sizeof(bbuf)) >= sizeof(bbuf) ||
(p = basename(bbuf)) == NULL ||
snprintf(path, sizeof(path), "%s/%s", target, p) >=

File Metadata

Mime Type
text/plain
Expires
Sat, Oct 10, 6:01 PM (7 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40561642
Default Alt Text
D11167.id29874.diff (710 B)

Event Timeline