Switch to unified view
a/src/execmd.cpp | b/src/execmd.cpp | ||
---|---|---|---|
... |
... |
||
1005 | } |
1005 | } |
1006 | 1006 | ||
1007 | // Static |
1007 | // Static |
1008 | bool ExecCmd::backtick(const vector<string> cmd, string& out) |
1008 | bool ExecCmd::backtick(const vector<string> cmd, string& out) |
1009 | { |
1009 | { |
1010 | if (cmd.empty()) { |
||
1011 | LOGERR(("ExecCmd::backtick: empty command\n")); |
||
1012 | return false; |
||
1013 | } |
||
1010 | vector<string>::const_iterator it = cmd.begin(); |
1014 | vector<string>::const_iterator it = cmd.begin(); |
1011 | it++; |
1015 | it++; |
1012 | vector<string> args(it, cmd.end()); |
1016 | vector<string> args(it, cmd.end()); |
1013 | ExecCmd mexec; |
1017 | ExecCmd mexec; |
1014 | int status = mexec.doexec(*cmd.begin(), args, 0, &out); |
1018 | int status = mexec.doexec(*cmd.begin(), args, 0, &out); |