Displaying 1 result from an estimated 1 matches for "okwrit".
Did you mean:
okwrite
2007 Jun 18
2
patch for triggering SFTP process_write
...other hand, SFTP-server re-read configuration file to catch the
new items only if the config line contains pw->pw_name, i.e. the
authenticated user of this sftp session. Only in this case a new
struct, called Trigger, is filled with path and filename of the script
to be triggered after the OKwrite event.
When calling the triggered script I check the F_OK and the X_OK status
and, eventually, exit with error: so the client can notice the error too.
If all OK, I perform a fork+execv calling what indicated by struct Trigger.
With many user, I can perform different personalized procedures.
(th...