/* libguestfs - the guestfsd daemon
- * Copyright (C) 2009 Red Hat Inc.
+ * Copyright (C) 2009 Red Hat Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
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);
+}