git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
614f834
)
03%d to prevent spaces in filenames
author
Aleš Křenek
<ljocha@ics.muni.cz>
Tue, 7 Apr 2009 14:22:48 +0000
(14:22 +0000)
committer
Aleš Křenek
<ljocha@ics.muni.cz>
Tue, 7 Apr 2009 14:22:48 +0000
(14:22 +0000)
org.glite.lb.logger/src/event_store.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.logger/src/event_store.c
b/org.glite.lb.logger/src/event_store.c
index
f132112
..
5aa9919
100644
(file)
--- a/
org.glite.lb.logger/src/event_store.c
+++ b/
org.glite.lb.logger/src/event_store.c
@@
-406,7
+406,7
@@
event_store_rotate_file(struct event_store *es)
for(num = 0; num < 256; num++) {
struct stat st;
- snprintf(newname, MAXPATHLEN, "%s.%d%3d", es->event_file_name, timestamp, num);
+ snprintf(newname, MAXPATHLEN, "%s.%d%
0
3d", es->event_file_name, timestamp, num);
newname[MAXPATHLEN] = 0;
if(stat(newname, &st) < 0) {
if(errno == ENOENT) {