FreeBSD Bugzilla – Attachment 12677 Details for
Bug 24390
ln(1) Replacing old dir-symlinks when using /bin/ln
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 443 bytes, created by
Espen Skoglund
on 2001-01-16 18:50:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Espen Skoglund
Created:
2001-01-16 18:50:01 UTC
Size:
443 bytes
patch
obsolete
>--- /usr/src/bin/ln/ln.c Mon Sep 18 04:07:11 2000 >+++ ln.c Tue Jan 16 19:27:41 2001 >@@ -162,7 +162,8 @@ > } > > /* If the source is a directory, append the target's name. */ >- if (isdir || ((exists = !stat(source, &sb)) && S_ISDIR(sb.st_mode))) { >+ if ((isdir || ((exists = !stat(source, &sb)) && S_ISDIR(sb.st_mode))) >+ && !(!lstat(source, &sb) && S_ISLNK(sb.st_mode))) { > if ((p = strrchr(target, '/')) == NULL) > p = target; > else
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 24390
: 12677