File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
src/request_body_processor Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ git submodule init
79
79
git submodule update
80
80
81
81
# Configure ModSecurity with core functions
82
- emconfigure ./configure --without-yajl --without-geoip --without-libxml --without-curl --disable-shared --disable-examples --disable-libtool-lock --disable-debug-logs --disable-mutex-on-pm --without-lmdb --without-maxmind --without-ssdeep with-pcre=./pcre-config
82
+ emconfigure ./configure --without-yajl --without-geoip --without-libxml --without-curl --without-lua -- disable-shared --disable-examples --disable-libtool-lock --disable-debug-logs --disable-mutex-on-pm --without-lmdb --without-maxmind --without-ssdeep -- with-pcre=./pcre-config
83
83
84
84
# Build the library
85
85
emmake make -j < num_cpus>
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ MultipartPartTmpFile::~MultipartPartTmpFile() {
45
45
Close ();
46
46
}
47
47
48
- const int unlink_rc = unlink (m_tmp_file_name. c_str ()) ;
48
+ const int unlink_rc = 0 ;
49
49
if (unlink_rc < 0 ) {
50
50
ms_dbg_a (m_transaction, 1 , " Multipart: Failed to delete file (part) \" " \
51
51
+ m_tmp_file_name + " \" because " \
@@ -81,9 +81,7 @@ void MultipartPartTmpFile::Open() {
81
81
82
82
int mode = m_transaction->m_rules ->m_uploadFileMode .m_value ;
83
83
if ((m_tmp_file_fd != -1 ) && (mode != 0 )) {
84
- if (fchmod (m_tmp_file_fd, mode) == -1 ) {
85
84
m_tmp_file_fd = -1 ;
86
- }
87
85
}
88
86
}
89
87
You can’t perform that action at this time.
0 commit comments