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 700004 Details for
Bug 891938
[conman] conmand fails to start up when timezone set to GMT-1, WARST, EASST & others
[?]
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]
Proposed patch
conman-0.2.5-strftime.patch (text/plain), 1.28 KB, created by
Denys Vlasenko
on 2013-02-20 12:29:14 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Denys Vlasenko
Created:
2013-02-20 12:29:14 UTC
Size:
1.28 KB
patch
obsolete
>diff -urpN conman-0.2.5.orig/util-str.c conman-0.2.5/util-str.c >--- conman-0.2.5.orig/util-str.c 2009-02-13 07:11:56.000000000 +0100 >+++ conman-0.2.5/util-str.c 2013-02-20 13:19:12.666727781 +0100 >@@ -254,37 +254,31 @@ int substitute_string(char *dst, size_t > > char * create_long_time_string(time_t t) > { >- char *p; >+ char buf[160]; > struct tm tm; >- const int len = 25; /* YYYY-MM-DD HH:MM:SS ZONE + NUL */ > >- if (!(p = malloc(len))) { >- out_of_memory(); >- } > get_localtime(&t, &tm); > >- if (strftime(p, len, "%Y-%m-%d %H:%M:%S %Z", &tm) == 0) { >+ if (strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S %Z", &tm) == 0) { > log_err(0, "strftime() failed"); >+ buf[0] = '\0'; > } >- return(p); >+ return(create_string(buf)); > } > > > char * create_short_time_string(time_t t) > { >- char *p; >+ char buf[80]; > struct tm tm; >- const int len = 12; /* MM-DD HH:MM + NUL */ > >- if (!(p = malloc(len))) { >- out_of_memory(); >- } > get_localtime(&t, &tm); > >- if (strftime(p, len, "%m-%d %H:%M", &tm) == 0) { >+ if (strftime(buf, sizeof(buf), "%m-%d %H:%M", &tm) == 0) { > log_err(0, "strftime() failed"); >+ buf[0] = '\0'; > } >- return(p); >+ return(create_string(buf)); > } > >
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 891938
: 700004