"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/agent/subagents/sunos/packages.cpp" between
netxms-3.1.352.tar.gz and netxms-3.1.361.tar.gz

About: NetXMS is a multi-platform open source network management and monitoring system.

packages.cpp  (netxms-3.1.352):packages.cpp  (netxms-3.1.361)
skipping to change at line 57 skipping to change at line 57
return SYSINFO_RC_UNSUPPORTED; return SYSINFO_RC_UNSUPPORTED;
FILE *pipe = popen("/usr/bin/pkginfo -l", "r"); FILE *pipe = popen("/usr/bin/pkginfo -l", "r");
if (pipe == NULL) if (pipe == NULL)
return SYSINFO_RC_ERROR; return SYSINFO_RC_ERROR;
const char *errptr; const char *errptr;
int erroffset; int erroffset;
pcre *preg = pcre_compile("[[:blank:]]*([\\w]+):[[:blank:]]*(.*)", PCRE_COMMO N_FLAGS_A | PCRE_CASELESS, &errptr, &erroffset, NULL); pcre *preg = pcre_compile("[[:blank:]]*([\\w]+):[[:blank:]]*(.*)", PCRE_COMMO N_FLAGS_A | PCRE_CASELESS, &errptr, &erroffset, NULL);
if (preg == NULL) if (preg == NULL)
{
pclose(pipe);
return SYSINFO_RC_ERROR; return SYSINFO_RC_ERROR;
}
value->addColumn(_T("NAME")); value->addColumn(_T("NAME"));
value->addColumn(_T("VERSION")); value->addColumn(_T("VERSION"));
value->addColumn(_T("VENDOR")); value->addColumn(_T("VENDOR"));
value->addColumn(_T("DATE")); value->addColumn(_T("DATE"));
value->addColumn(_T("URL")); value->addColumn(_T("URL"));
value->addColumn(_T("DESCRIPTION")); value->addColumn(_T("DESCRIPTION"));
bool newEntry = true; bool newEntry = true;
while(1) while(1)
 End of changes. 2 change blocks. 
0 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)