diff options
author | Matt Johnston <matt@ucc.asn.au> | 2008-09-15 14:04:55 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2008-09-15 14:04:55 +0000 |
commit | 12929e8cf09bf16ad59e04eaa20f31282bd58e30 (patch) | |
tree | bec557b58d2251467eddfc6eede4b7667f57b387 /dbutil.h | |
parent | 7ac24b10b9967e396d5c97395eb70084e1697947 (diff) |
- Add run_shell_command() function to run a "sh -c" command, handling
lots of the work that exechild did (and can be shared by client -J option)
--HG--
extra : convert_revision : a15dfd8017af8212b3b227f18ce2539dd471f7f6
Diffstat (limited to 'dbutil.h')
-rw-r--r-- | dbutil.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -51,6 +51,7 @@ int dropbear_listen(const char* address, const char* port, int *socks, unsigned int sockcount, char **errstring, int *maxfd); int spawn_command(void(*exec_fn)(void *user_data), void *exec_data, int *writefd, int *readfd, int *errfd, pid_t *pid); +void run_shell_command(const char* cmd, unsigned int maxfd, char* usershell); int connect_remote(const char* remotehost, const char* remoteport, int nonblocking, char ** errstring); char* getaddrhostname(struct sockaddr_storage * addr); |