Redmine #3912: use $(debian_knowledge.call_aptitude) in lib/3.[56]/packages.cf
Merge pull request #1217 from tzz/feature/3912-use-debian-knowledge-packages

Redmine #3912: use $(debian_knowledge.call_aptitude) in lib/3.[56]/packages.cf
replaced DATA_TYPE_* with CF_DATA_TYPE_* to fix trouble on solaris 11.1 (
#3472)
fix for #3482 sys.flavor and sys.arch are empty
Merge pull request #1261 from McAtte/3.5.x

[3.5.x] fix for #3482 sys.flavor and sys.arch are empty
Tiny optimization in safe_open.

We already know that next_component is neither null nor empty in the
second branch, because of 7f137f0ad5.

(cherry picked from commit e890b4a420a9d7857c8a6a89a5aa5db061045faf)
Fix failure to open paths ending in a slash.

Redmine #3905.

(cherry picked from commit 7fc5a0a65ebe0920b881a338b89482656bafeae6)
Fix incorrect return value for empty string in safe_open.

(cherry picked from commit 7f137f0ad57085a8100bbfa73efd6f06d07678a4)
Update ChangeLog with backported fixes
partially revert a change intended to alter the log message - fixes 4038
Merge pull request #1297 from McAtte/3.5.x-solaris-vsnprintf-bug

3.5.x solaris vsnprintf bug
Merge pull request #1259 from mmuensch/3.5.x

[3.5.x] (#3472) replaced DATA_TYPE_* with CF_DATA_TYPE_* to fix trouble on solaris 11.1
Fix Issue #3974
Merge changes done independently on github.com:gc3-uzh-ch/cfengine into 3.5.x+issue-3964
Fix path according to suggestions from Edward Welbourne (@eidiosyncratic).