[flow-tools] flow-capture post rotate exec patch - correction

Pavel B Dudkin awfee@mail.ru
Mon, 22 Oct 2001 15:05:50 +0600


Hi,

I took the patch for post rotate execution by Stefan Stefanov and it
didn't work for me. After a little investigation, I noticed that execl()
call takes wrong argument list which is not NULL-terminated:

execl(post_rotate_exec,cap_file.nname);

It should be as follows:

execl(post_rotate_exec,post_rotate_exec,cap_file.nname,NULL);

Hope the right one makes it into the 0.56 :)

Pavel Dudkin, Uraltelecom