Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 145056 Details for
Bug 122145
Logrotate does not allow non-ASCII paths
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
could you test this please
logrotate-widechar.patch (text/plain), 1.62 KB, created by
Peter Vrabec
on 2007-01-08 14:50:14 UTC
(
hide
)
Description:
could you test this please
Filename:
MIME Type:
Creator:
Peter Vrabec
Created:
2007-01-08 14:50:14 UTC
Size:
1.62 KB
patch
obsolete
>--- logrotate-3.7.4/config.c.widechar 2007-01-08 14:29:06.000000000 +0100 >+++ logrotate-3.7.4/config.c 2007-01-08 14:33:41.000000000 +0100 >@@ -14,6 +14,7 @@ > #include <time.h> > #include <unistd.h> > #include <assert.h> >+#include <wchar.h> > > #include "basenames.h" > #include "log.h" >@@ -82,13 +83,24 @@ > char *start = *startPtr; > char *path; > >+ wchar_t pwc; >+ size_t len; >+ > if (!isolateValue(configFile, lineNum, key, &start, &endtag)) { > oldchar = *endtag, *endtag = '\0'; > > chptr = start; > >- /* this is technically too restrictive -- let's see if anyone >- complains */ >+ while( (len = mbrtowc(&pwc, chptr, strlen(chptr), NULL)) != 0 ) { >+ if( len == (size_t)(-1) || len == (size_t)(-2) || !iswprint(pwc) || iswblank(pwc) ) { >+ message(MESS_ERROR, "%s:%d bad %s path %s\n", >+ configFile, lineNum, key, start); >+ return NULL; >+ } >+ chptr += len; >+ } >+ >+/* > while (*chptr && isprint(*chptr) && *chptr != ' ') > chptr++; > if (*chptr) { >@@ -96,8 +108,11 @@ > configFile, lineNum, key, start); > return NULL; > } >+*/ >+ > path = strdup(start); > >+ > *endtag = oldchar, start = endtag; > > *startPtr = start; >--- logrotate-3.7.4/logrotate.c.widechar 2007-01-08 14:36:09.000000000 +0100 >+++ logrotate-3.7.4/logrotate.c 2007-01-08 14:38:01.000000000 +0100 >@@ -12,6 +12,7 @@ > #include <time.h> > #include <unistd.h> > #include <glob.h> >+#include <locale.h> > > #ifdef WITH_SELINUX > #include <selinux/selinux.h> >@@ -1344,6 +1345,7 @@ > }; > > logSetLevel(MESS_NORMAL); >+ setlocale (LC_ALL, ""); > > optCon = poptGetContext("logrotate", argc, argv, options, 0); > poptReadDefaultConfig(optCon, 1);
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 122145
:
144952
| 145056