| commit | 010a343032d170d0c39e7f11b17c6d9646020255 | [log] [download] |
|---|---|---|
| author | Kir Kolyshkin <kir@openvz.org> | Thu Mar 31 07:11:49 2011 +0400 |
| committer | Kir Kolyshkin <kir@openvz.org> | Thu Mar 31 07:11:49 2011 +0400 |
| tree | bb4b6e632dc91d09a9be4ce59f64a8b9784a6d6b | |
| parent | 1ef7a072a6da73c5d5124a0edd587d24d244c871 [diff] |
veth_dev_create(): fix return code
The return code from veth_dev_create() is propagated all the way up to main()
and is used as vzctl exit code. Therefore we can not just use EINVAL.
Here's one of the paths:
main()
run_action()
start()
vps_start()
vps_start_custom()
vps_setup_res()
vps_setup_veth()
veth_ctl()
veth_dev_create()
Signed-off-by: Kir Kolyshkin <kir@openvz.org>