Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 325270 Details for
Bug 436536
net-irc/xchat-2.8.8-r2 - patches that apply cleanly and fix several issues
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
log path patch
0016-log_create_pathname.patch (text/plain), 957 bytes, created by
David J Cozatt
on 2012-09-28 20:32:25 UTC
(
hide
)
Description:
log path patch
Filename:
MIME Type:
Creator:
David J Cozatt
Created:
2012-09-28 20:32:25 UTC
Size:
957 bytes
patch
obsolete
>Index: src/common/text.c >=================================================================== >--- src/common/text.c (revision 1511) >+++ src/common/text.c (working copy) >@@ -512,6 +512,7 @@ > char *fs; > struct tm *tm; > time_t now; >+ char *xdir; > > if (!netname) > netname = "NETWORK"; >@@ -530,14 +531,11 @@ > strftime (fnametime, sizeof (fnametime), fname, tm); > > /* create final path/filename */ >-#ifdef WIN32 >- if (fnametime[0] == '/' || (fnametime[0] >= 'A' && fnametime[1] == ':')) >-#else >- if (fnametime[0] == '/') /* is it fullpath already? */ >-#endif >+ xdir = get_xdir_utf8 (); >+ if (!strncmp(fnametime, xdir, strlen(xdir))) > snprintf (fname, sizeof (fname), "%s", fnametime); > else >- snprintf (fname, sizeof (fname), "%s/xchatlogs/%s", get_xdir_utf8 (), fnametime); >+ snprintf (fname, sizeof (fname), "%s/xchatlogs/%s", xdir, fnametime); > > /* now we need it in FileSystem encoding */ > fs = xchat_filename_from_utf8 (fname, -1, 0, 0, 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 436536
:
325242
|
325244
|
325246
|
325248
|
325250
|
325252
|
325254
|
325256
|
325258
|
325260
|
325262
|
325264
|
325266
|
325268
| 325270 |
325272
|
325274
|
325276