diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 2008-11-19 10:43:57 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 2008-11-19 10:43:57 +0000 |
commit | f982be45e81588a27383cd1a3eb12789b8498904 (patch) | |
tree | 07be283d015b2c39f95e655cb7328ff355bc47fa /ftp/proftpd/files/extra-patch-modules_mod_xfer.c | |
parent | - Fix modes of the temp directory [1] (diff) |
This commit was manufactured by cvs2svn to create tag 'RELEASE_6_4_0'.release/6.4.0
Diffstat (limited to 'ftp/proftpd/files/extra-patch-modules_mod_xfer.c')
-rw-r--r-- | ftp/proftpd/files/extra-patch-modules_mod_xfer.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ftp/proftpd/files/extra-patch-modules_mod_xfer.c b/ftp/proftpd/files/extra-patch-modules_mod_xfer.c new file mode 100644 index 000000000000..36f7ca90c2b5 --- /dev/null +++ b/ftp/proftpd/files/extra-patch-modules_mod_xfer.c @@ -0,0 +1,23 @@ +--- modules/mod_xfer.c.org Tue Jan 1 12:31:32 2008 ++++ modules/mod_xfer.c Tue Jan 1 16:45:20 2008 +@@ -42,6 +42,8 @@ + #include <regex.h> + #endif + ++#include "mod_clamav.h" ++ + extern module auth_module; + extern pid_t mpid; + +@@ -1582,6 +1584,11 @@ + return PR_ERROR(cmd); + } + ++ if (clamav_scan(cmd)) { ++ pr_data_close(FALSE); ++ return PR_ERROR(cmd); ++ } ++ + if (session.xfer.path && + session.xfer.path_hidden) { + if (pr_fsio_rename(session.xfer.path_hidden, session.xfer.path) != 0) { |