Correct problem with flow-capture -N-2 format which caused daemon

to be unable to create its own temporary files.

flow-tools developer Mark Fullmer has acknowledged the patch.
This commit is contained in:
Chris Timmons 2002-04-17 17:00:43 +00:00
parent 103d70f01b
commit 7c8497a2f6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=57818
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- lib/ftfile.c Tue Apr 24 14:07:18 2001
+++ lib/ftfile.c Tue Apr 16 16:52:49 2002
@@ -449,7 +449,7 @@
} else if (nest == -2) {
sprintf(dbuf, "%2.2d-%2.2d/%2.2d-%2.2d-%2.2d/",
(int)tm->tm_year+1900, (int)tm->tm_mon+1,
- (int)tm->tm_year+1900, (int)tm->tm_mon+1, (int)tm->tm_mon+1);
+ (int)tm->tm_year+1900, (int)tm->tm_mon+1, (int)tm->tm_mday);
} else if (nest == -1) {
sprintf(dbuf, "%2.2d/%2.2d-%2.2d/%2.2d-%2.2d-%2.2d/",
(int)tm->tm_year+1900,

View File

@ -0,0 +1,11 @@
--- lib/ftfile.c Tue Apr 24 14:07:18 2001
+++ lib/ftfile.c Tue Apr 16 16:52:49 2002
@@ -449,7 +449,7 @@
} else if (nest == -2) {
sprintf(dbuf, "%2.2d-%2.2d/%2.2d-%2.2d-%2.2d/",
(int)tm->tm_year+1900, (int)tm->tm_mon+1,
- (int)tm->tm_year+1900, (int)tm->tm_mon+1, (int)tm->tm_mon+1);
+ (int)tm->tm_year+1900, (int)tm->tm_mon+1, (int)tm->tm_mday);
} else if (nest == -1) {
sprintf(dbuf, "%2.2d/%2.2d-%2.2d/%2.2d-%2.2d-%2.2d/",
(int)tm->tm_year+1900,