I've been looking through pure-ftpd-1.0.42 source code:
https://github.com/jedisct1/pure-ftpd
Trying to find when it triggers:
https://github.com/jedisct1/pure-ftpd/blob/master/src/pure-uploadscript.c
i.e. when does it run the uploadscript after a file has been uploaded.
If you look in src/ftp_parser.c
the dostor
method is how a file starts the upload journey. Then it goes to ul_send
then ul_handle_data
but I get lost at this point. I never see when it says, okay, this file is now uploaded, time to call uploadscript
. Can someone show me the line?