Changeset 4580c6c in nscp
- Timestamp:
- 07/08/09 21:23:39 (4 years ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2, stable
- Children:
- 79f8b2c
- Parents:
- dcd5462
- Files:
-
- 6 added
- 7 edited
-
AutoBuild.h (modified) (1 diff)
-
changelog (modified) (1 diff)
-
helpers/installer_dll/Jamfile (added)
-
helpers/installer_dll/installer_dll.vcproj (added)
-
helpers/installer_dll/installer_helper.hpp (added)
-
helpers/installer_dll/main_dll.cpp (added)
-
helpers/installer_dll/main_dll.def (added)
-
helpers/systray_helper/Jamfile (added)
-
modules/CheckDisk/CheckDisk.cpp (modified) (1 diff)
-
modules/CheckEventLog/CheckEventLog.cpp (modified) (1 diff)
-
modules/CheckExternalScripts/CheckExternalScripts-2005.vcproj (modified) (1 diff)
-
modules/CheckExternalScripts/CheckExternalScripts.cpp (modified) (2 diffs)
-
modules/CheckExternalScripts/CheckExternalScripts.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
AutoBuild.h
rdcd5462 r4580c6c 3 3 // change the FALSE to TRUE for autoincrement of build number 4 4 #define INCREMENT_VERSION TRUE 5 #define FILEVER 0,3,7, 46 #define PRODUCTVER 0,3,7, 47 #define STRFILEVER _T("0.3.7. 4")8 #define STRPRODUCTVER _T("0.3.7. 4")9 #define STRPRODUCTDATE _T("2009-0 6-20")5 #define FILEVER 0,3,7,8 6 #define PRODUCTVER 0,3,7,8 7 #define STRFILEVER _T("0.3.7.8") 8 #define STRPRODUCTVER _T("0.3.7.8") 9 #define STRPRODUCTDATE _T("2009-07-05") 10 10 #endif // AUTOBUILD_H -
changelog
rdcd5462 r4580c6c 6 6 * Fixa dependonservice LanManWorkStation (old win) 7 7 * Fix RtlStringFromGUID problem on NT4 8 9 2009-07-05 MickeM 10 * Fixed issue with CheckExternalScripts and script_dir: not adding the commands properly. 11 * Fixed issue with CheckExternalScripts and script_dir: not using relative paths (#310). 8 12 9 13 2009-06-20 MickeM -
modules/CheckDisk/CheckDisk.cpp
rdcd5462 r4580c6c 833 833 NSC_error errors; 834 834 for (std::list<std::wstring>::const_iterator pit = paths.begin(); pit != paths.end(); ++pit) { 835 //pattern_type path = split_path(*pit);836 835 recursive_scan<file_filter_function_ex>(*pit, pattern, 0, max_dir_depth, finder, &errors); 837 836 if (finder.hasError()) { -
modules/CheckEventLog/CheckEventLog.cpp
rdcd5462 r4580c6c 182 182 strEx::replace(real_name, _T("\n"), _T("")); 183 183 strEx::replace(real_name, _T("\r"), _T("")); 184 NSC_DEBUG_MSG(_T("Attempting to match: ") + real_name + _T(" with ") + name); 184 185 if (real_name == name) 185 186 return *cit; -
modules/CheckExternalScripts/CheckExternalScripts-2005.vcproj
r3692371 r4580c6c 2044 2044 </File> 2045 2045 <File 2046 RelativePath="..\..\include\file_helpers.hpp" 2047 > 2048 </File> 2049 <File 2046 2050 RelativePath="..\..\include\NSCHelper.h" 2047 2051 > -
modules/CheckExternalScripts/CheckExternalScripts.cpp
rb1ac2fa r4580c6c 25 25 #include <config.h> 26 26 #include <msvc_wrappers.h> 27 #include <file_helpers.hpp> 27 28 28 29 CheckExternalScripts gCheckExternalScripts; … … 38 39 39 40 void CheckExternalScripts::addAllScriptsFrom(std::wstring path) { 40 std::wstring baseDir; 41 file_helpers::patterns::pattern_type pattern = file_helpers::patterns::split_pattern(path); 42 if (!file_helpers::checks::exists(pattern.first)) 43 pattern.first = NSCModuleHelper::getBasePath() + _T("\\") + pattern.first; 44 if (!file_helpers::checks::exists(pattern.first)) 45 NSC_LOG_ERROR_STD(_T("Path was not found: ") + pattern.first); 46 /* TODO: do we need this? 41 47 std::wstring::size_type pos = path.find_last_of('*'); 42 48 if (pos == std::wstring::npos) { 43 49 path += _T("*.*"); 44 50 } 51 */ 45 52 WIN32_FIND_DATA wfd; 46 HANDLE hFind = FindFirstFile(path.c_str(), &wfd); 53 std::wstring real_path = file_helpers::patterns::combine_pattern(pattern); 54 HANDLE hFind = FindFirstFile(real_path.c_str(), &wfd); 47 55 if (hFind != INVALID_HANDLE_VALUE) { 48 56 do { 49 57 if ((wfd.dwFileAttributes&FILE_ATTRIBUTE_DIRECTORY) != FILE_ATTRIBUTE_DIRECTORY) { 50 addCommand(wfd.cFileName );58 addCommand(wfd.cFileName, pattern.first + _T("\\") + wfd.cFileName, _T("")); 51 59 } 52 60 } while (FindNextFile(hFind, &wfd)); 53 61 } else { 54 NSC_LOG_ERROR_STD(_T("No scripts found in path: ") + path);62 NSC_LOG_ERROR_STD(_T("No scripts found in path: ") + real_path); 55 63 return; 56 64 } -
modules/CheckExternalScripts/CheckExternalScripts.h
r394f7a1 r4580c6c 79 79 private: 80 80 void addAllScriptsFrom(std::wstring path); 81 void addCommand(strEx::blindstr key, std::wstring cmd = _T(""), std::wstring args = _T("")) {81 void addCommand(strEx::blindstr key, std::wstring cmd, std::wstring args) { 82 82 commands[key] = command_data(cmd, args); 83 83 } 84 void addAlias(strEx::blindstr key, std::wstring cmd = _T(""), std::wstring args = _T("")) {84 void addAlias(strEx::blindstr key, std::wstring cmd, std::wstring args) { 85 85 alias[key] = command_data(cmd, args); 86 86 }
Note: See TracChangeset
for help on using the changeset viewer.








