CESNET / ipfixcol

IPFIXcol is an implementation of an IPFIX (RFC 7011) collector
Other
64 stars 37 forks source link

fbitdump: path concatenation failures (-M and -r) #7

Closed rickhofstede closed 9 years ago

rickhofstede commented 9 years ago

It seems that fbitdump is performing a strict concatenation of the paths provided using the '-M' and '-r' parameters. This can easily lead to errors and should be very simple to fix. Example:

user@machine:~$fbitdump -C fbitdump.xml -M /<path>/0 -r 2014/10/28/ic20141028132900
Cannot open directory "/<path>/02014/10/28/ic20141028132900/"
No tables found in specified directory

To fix this kind of errors, fbitdump should check whether an additional '/' must be inserted.

mikeek commented 9 years ago

fixed in 767ad615374c97f6b5d9b32b2e91516d80f6f4c4, thanks for the report.