summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-05-06 10:30:10 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-05-06 10:30:10 +0200
commit759904862dab6e580c6b890fd9ed75e1f29271f1 (patch)
treeb804f701bca837c63827d40bdf40ba5602fd3416 /runtime
parentff2bb192f2c566f189a9d104d83d7a70c7888774 (diff)
downloadrsyslog-759904862dab6e580c6b890fd9ed75e1f29271f1.tar.gz
rsyslog-759904862dab6e580c6b890fd9ed75e1f29271f1.tar.xz
rsyslog-759904862dab6e580c6b890fd9ed75e1f29271f1.zip
step: imtcp did not properly handle privilege drop
Diffstat (limited to 'runtime')
-rw-r--r--runtime/nsd_ptcp.c6
-rw-r--r--runtime/rsconf.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/runtime/nsd_ptcp.c b/runtime/nsd_ptcp.c
index c8915231..dd6764fa 100644
--- a/runtime/nsd_ptcp.c
+++ b/runtime/nsd_ptcp.c
@@ -486,7 +486,7 @@ LstnInit(netstrms_t *pNS, void *pUsr, rsRetVal(*fAddLstn)(void*,netstrm_t*),
#endif
) {
/* TODO: check if *we* bound the socket - else we *have* an error! */
- dbgprintf("error %d while binding tcp socket", errno);
+ dbgprintf("error %d while binding tcp socket\n", errno);
close(sock);
sock = -1;
continue;
@@ -498,7 +498,7 @@ LstnInit(netstrms_t *pNS, void *pUsr, rsRetVal(*fAddLstn)(void*,netstrm_t*),
* to a fixed, reasonable, limit that should work. Only if
* that fails, too, we give up.
*/
- dbgprintf("listen with a backlog of %d failed - retrying with default of 32.",
+ dbgprintf("listen with a backlog of %d failed - retrying with default of 32.\n",
iSessMax / 10 + 5);
if(listen(sock, 32) < 0) {
dbgprintf("tcp listen error %d, suspending\n", errno);
@@ -531,7 +531,7 @@ LstnInit(netstrms_t *pNS, void *pUsr, rsRetVal(*fAddLstn)(void*,netstrm_t*),
"- this may or may not be an error indication.\n", numSocks, maxs);
if(numSocks == 0) {
- dbgprintf("No TCP listen sockets could successfully be initialized");
+ dbgprintf("No TCP listen sockets could successfully be initialized\n");
ABORT_FINALIZE(RS_RET_COULD_NOT_BIND);
}
diff --git a/runtime/rsconf.c b/runtime/rsconf.c
index 94190d76..0f944539 100644
--- a/runtime/rsconf.c
+++ b/runtime/rsconf.c
@@ -357,7 +357,7 @@ tellModulesActivateConfigPrePrivDrop(void)
if( node->pMod->beginCnfLoad != NULL
&& node->pMod->activateCnfPrePrivDrop != NULL
&& node->canActivate) {
- DBGPRINTF("activating config %p for module %s\n",
+ DBGPRINTF("pre priv drop activating config %p for module %s\n",
runConf, node->pMod->pszName);
localRet = node->pMod->activateCnfPrePrivDrop(node->modCnf);
if(localRet != RS_RET_OK) {