[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SV: FTP_LOG(*OFF) doesn't work??



Peder,

Sorry that you did not get a response. I can see your e-mails in the archives, but I don't think I noticed them when they were first sent.

Unfortunately, your suggested changes seem to be for an older version of FTPAPI. Which brings me to the big problem I have with maintaining FTPAPI...

Dennis Lovelady converted FTPAPI to free format in 2012, and he made many improvements. However, he also changed the prototypes to many of the routines in a way that requires programs to be recompiled and re-bound. As a result, I never released his changes. So now I have a newer/better version of FTPAPI, but am not sure I want to release it.

Also, because at my current job, I don't have a need for FTPAPI, I have not tested Dennis's changes very much. I can't say whether they work as they should.

So, if you'd like to help and have changes made to FTPAPI, please try the beta version, help test it and give me your thoughts on whether it should be released.
http://www.scottklement.com/ftpapi/beta/

Your logging update will need to be made to that version.

-SK


On 4/6/2016 6:45 AM, Udesen, Peder wrote:
    There is nothing new in this.

    I reported the same problem and the solution on 17 July 2015 but got no
    response for it.



    It was this:


    I have discovered an error in the procedure FTP_logging in FTPAPIR4 in
    the statements


        c                   eval      wkDebug = peSetting

    B01 c                   if        savSessionIdx <> -1

        c                   callp     cmd_occurSession(savSessionIdx)

    E01 c                   endif



    The problem is that wkDebug is a field in the multiple-occurrence data
    structure wkSession and the

    actual occurrence is set in the procedure cmd_occurSession !

    This way wkDebug is set for the false session.


    It should be

     B01 c                   if        savSessionIdx <> -1

         c                   callp     cmd_occurSession(savSessionIdx)

    E01 c                   endif

         c                   eval      wkDebug = peSetting



    Kind regards


    Peder Udesen





-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------