diff options
Diffstat (limited to 'daemon/command.c')
-rw-r--r-- | daemon/command.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/daemon/command.c b/daemon/command.c index 3254de58..b33f2dbe 100644 --- a/daemon/command.c +++ b/daemon/command.c @@ -101,3 +101,19 @@ do_command_lines (char **argv) return lines; /* Caller frees. */ } + +char * +do_sh (char *command) +{ + char *argv[] = { "/bin/sh", "-c", command, NULL }; + + return do_command (argv); +} + +char ** +do_sh_lines (char *command) +{ + char *argv[] = { "/bin/sh", "-c", command, NULL }; + + return do_command_lines (argv); +} |