summaryrefslogtreecommitdiffstats
path: root/omshell.c
diff options
context:
space:
mode:
Diffstat (limited to 'omshell.c')
-rw-r--r--omshell.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/omshell.c b/omshell.c
index 6b67dff4..80bec178 100644
--- a/omshell.c
+++ b/omshell.c
@@ -91,16 +91,19 @@ static rsRetVal parseSelectorAct(uchar **pp, selector_t *f)
case '^': /* bkalkbrenner 2005-09-20: execute shell command */
dprintf("exec\n");
++p;
- cflineParseFileName(f, p);
- if (f->f_type == F_FILE) {
- f->f_type = F_SHELL;
- }
+ if((iRet = cflineParseFileName(f, p)) == RS_RET_OK)
+ if (f->f_type == F_FILE) {
+ f->f_type = F_SHELL;
+ }
break;
default:
iRet = RS_RET_CONFLINE_UNPROCESSED;
break;
}
+ if(iRet == RS_RET_OK)
+ iRet = RS_RET_CONFLINE_PROCESSED;
+
if(iRet == RS_RET_CONFLINE_PROCESSED)
*pp = p;
return iRet;