summaryrefslogtreecommitdiffstats
path: root/omshell.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-07-26 10:11:20 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-07-26 10:11:20 +0000
commit29c76b9c8775860b9dbc705be2c885dc50866593 (patch)
tree3b6ca5b3ebe0726886a0ba7f55356b701ee1c8d5 /omshell.c
parentb39c2c1673a679814d18e70bd90591100e9aeafc (diff)
downloadrsyslog-29c76b9c8775860b9dbc705be2c885dc50866593.tar.gz
rsyslog-29c76b9c8775860b9dbc705be2c885dc50866593.tar.xz
rsyslog-29c76b9c8775860b9dbc705be2c885dc50866593.zip
removed references to f_un from omshell.c
Diffstat (limited to 'omshell.c')
-rw-r--r--omshell.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/omshell.c b/omshell.c
index a09a72bb..b6aed55b 100644
--- a/omshell.c
+++ b/omshell.c
@@ -46,6 +46,7 @@
/* internal structures
*/
typedef struct _instanceData {
+ uchar progName[MAXFNAME]; /* program to execute */
} instanceData;
@@ -69,22 +70,22 @@ ENDfreeInstance
BEGINdbgPrintInstInfo
CODESTARTdbgPrintInstInfo
- printf("%s", f->f_un.f_file.f_fname);
+ printf("%s", pData->progName);
ENDdbgPrintInstInfo
BEGINdoAction
uchar *psz;
CODESTARTdoAction
- /* TODO: using f->f_un.f_file.f_name is not clean from the point of
+ /* TODO: using pData->progName is not clean from the point of
* modularization. We'll change that as we go ahead with modularization.
* rgerhards, 2007-07-20
*/
dprintf("\n");
iovCreate(f);
psz = (uchar*) iovAsString(f);
- if(execProg((uchar*) f->f_un.f_file.f_fname, 1, (uchar*) psz) == 0)
- logerrorSz("Executing program '%s' failed", f->f_un.f_file.f_fname);
+ if(execProg((uchar*) pData->progName, 1, (uchar*) psz) == 0)
+ logerrorSz("Executing program '%s' failed", (char*)pData->progName);
ENDdoAction
@@ -105,7 +106,7 @@ CODESTARTparseSelectorAct
case '^': /* bkalkbrenner 2005-09-20: execute shell command */
dprintf("exec\n");
++p;
- if((iRet = cflineParseFileName(f, p, (uchar*) f->f_un.f_file.f_fname)) == RS_RET_OK)
+ if((iRet = cflineParseFileName(f, p, (uchar*) pData->progName)) == RS_RET_OK)
if (f->f_type == F_FILE) {
f->f_type = F_SHELL;
}