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:
parent
103d70f01b
commit
7c8497a2f6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=57818
11
net-mgmt/flow-tools/files/patch-ftfile.c
Normal file
11
net-mgmt/flow-tools/files/patch-ftfile.c
Normal 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,
|
11
net/flow-tools/files/patch-ftfile.c
Normal file
11
net/flow-tools/files/patch-ftfile.c
Normal 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,
|
Loading…
Reference in New Issue
Block a user