diff options
author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-08 19:18:21 +0000 |
---|---|---|
committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-08 19:18:21 +0000 |
commit | e1c5a2b33409b9795fa58bf389eac855981330a5 (patch) | |
tree | c88f13940cab1cc4824cee90109fe93d6ffd3670 /slirp/misc.c | |
parent | Add model field to nic info (Mark McLoughlin) (diff) | |
download | qemu-kvm-e1c5a2b33409b9795fa58bf389eac855981330a5.tar.gz qemu-kvm-e1c5a2b33409b9795fa58bf389eac855981330a5.tar.bz2 qemu-kvm-e1c5a2b33409b9795fa58bf389eac855981330a5.zip |
Redirect slirp traffic to/from qemu character device (Gleb Natapov)
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6240 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'slirp/misc.c')
-rw-r--r-- | slirp/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slirp/misc.c b/slirp/misc.c index 9ff317639..1ec8b5595 100644 --- a/slirp/misc.c +++ b/slirp/misc.c @@ -169,7 +169,7 @@ add_exec(ex_ptr, do_pty, exec, addr, port) (*ex_ptr)->ex_fport = port; (*ex_ptr)->ex_addr = addr; (*ex_ptr)->ex_pty = do_pty; - (*ex_ptr)->ex_exec = strdup(exec); + (*ex_ptr)->ex_exec = (do_pty == 3) ? exec : strdup(exec); (*ex_ptr)->ex_next = tmp_ptr; return 0; } |