summaryrefslogtreecommitdiffhomepage
path: root/dbutil.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2008-09-15 14:04:55 +0000
committerMatt Johnston <matt@ucc.asn.au>2008-09-15 14:04:55 +0000
commit12929e8cf09bf16ad59e04eaa20f31282bd58e30 (patch)
treebec557b58d2251467eddfc6eede4b7667f57b387 /dbutil.h
parent7ac24b10b9967e396d5c97395eb70084e1697947 (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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/dbutil.h b/dbutil.h
index ca09b4a..a70ed46 100644
--- a/dbutil.h
+++ b/dbutil.h
@@ -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);