From 7c8497a2f670222ba84c2f312f6d9d9ff021a898 Mon Sep 17 00:00:00 2001 From: Chris Timmons Date: Wed, 17 Apr 2002 17:00:43 +0000 Subject: [PATCH] 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. --- net-mgmt/flow-tools/files/patch-ftfile.c | 11 +++++++++++ net/flow-tools/files/patch-ftfile.c | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 net-mgmt/flow-tools/files/patch-ftfile.c create mode 100644 net/flow-tools/files/patch-ftfile.c diff --git a/net-mgmt/flow-tools/files/patch-ftfile.c b/net-mgmt/flow-tools/files/patch-ftfile.c new file mode 100644 index 000000000000..d9863d07eda6 --- /dev/null +++ b/net-mgmt/flow-tools/files/patch-ftfile.c @@ -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, diff --git a/net/flow-tools/files/patch-ftfile.c b/net/flow-tools/files/patch-ftfile.c new file mode 100644 index 000000000000..d9863d07eda6 --- /dev/null +++ b/net/flow-tools/files/patch-ftfile.c @@ -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,