FreeBSD Bugzilla – Attachment 153589 Details for
Bug 193009
java/openjdk8 does not build with OPTIONS_FILE_SET+=DEBUG
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
An optimized patch, i.e., realpath(3) returns an absolute path.
rtld.diff (text/plain), 827 bytes, created by
Jung-uk Kim
on 2015-02-27 17:44:27 UTC
(
hide
)
Description:
An optimized patch, i.e., realpath(3) returns an absolute path.
Filename:
MIME Type:
Creator:
Jung-uk Kim
Created:
2015-02-27 17:44:27 UTC
Size:
827 bytes
patch
obsolete
>Index: libexec/rtld-elf/rtld.c >=================================================================== >--- libexec/rtld-elf/rtld.c (revision 279349) >+++ libexec/rtld-elf/rtld.c (working copy) >@@ -3561,17 +3561,15 @@ rtld_dirname(const char *path, char *bname) > static int > rtld_dirname_abs(const char *path, char *base) > { >- char base_rel[PATH_MAX]; >+ char *last; > >- if (rtld_dirname(path, base) == -1) >+ if (realpath(path, base) == NULL) > return (-1); >- if (base[0] == '/') >- return (0); >- if (getcwd(base_rel, sizeof(base_rel)) == NULL || >- strlcat(base_rel, "/", sizeof(base_rel)) >= sizeof(base_rel) || >- strlcat(base_rel, base, sizeof(base_rel)) >= sizeof(base_rel)) >+ last = strrchr(base, '/'); >+ if (last == NULL) > return (-1); >- strcpy(base, base_rel); >+ if (last != base) >+ *last = '\0'; > return (0); > } >
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 193009
:
146294
|
150060
|
150061
|
153565
|
153588
| 153589