FreeBSD Bugzilla – Attachment 151520 Details for
Bug 196668
sysutils/logrotate: segmentation fault due to differences in qsort_r implementations
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
qsort_r patch
file_196668.txt (text/plain), 896 bytes, created by
jyoung15
on 2015-01-13 04:25:13 UTC
(
hide
)
Description:
qsort_r patch
Filename:
MIME Type:
Creator:
jyoung15
Created:
2015-01-13 04:25:13 UTC
Size:
896 bytes
patch
obsolete
>--- a/work/logrotate-3.8.8/logrotate.c 2015-01-12 10:42:59.000000000 -0500 >+++ b/work/logrotate-3.8.8/logrotate.c 2015-01-12 23:20:11.000000000 -0500 >@@ -114,7 +114,7 @@ > } > > #if defined(HAVE_STRPTIME) && defined(HAVE_QSORT_R) >-static int compGlobResult(const void *result1, const void *result2, void *data) { >+static int compGlobResult(void *data, const void *result1, const void *result2) { > struct tm time; > time_t t1, t2; > struct compData *d = (struct compData *) data; >@@ -138,7 +138,7 @@ > struct compData d; > d.prefix_len = prefix_len; > d.dformat = dformat; >- qsort_r(result->gl_pathv, result->gl_pathc, sizeof(char *), compGlobResult, &d); >+ qsort_r(result->gl_pathv, result->gl_pathc, sizeof(char *), &d, compGlobResult); > } > #else > static void sortGlobResult(glob_t *result, int prefix_len, const char *dformat) {
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 196668
: 151520 |
153206