| commit | 5b639aad4245d6d6fdaf30f41789ebb3232e80a3 | [log] [download] |
|---|---|---|
| author | Kir Kolyshkin <kir@openvz.org> | Sun Jun 30 11:32:26 2013 -0700 |
| committer | Kir Kolyshkin <kir@openvz.org> | Sun Jun 30 11:32:26 2013 -0700 |
| tree | 87e45a77dbb50ad47f6f7186049d65ff04b18235 | |
| parent | 68038a5072947684be414fa0a3fb34a1ab358d71 [diff] |
destroydir: don't return -1
vzctl destroy flow is this:
main()
run_action()
destroy()
vps_destroy()
vps_destroy_dir()
destroydir()
and in case destroydir() returns non-zero the value is returned from
main. Therefore, we can't return -1. Use the appropriate VZ_* error
codes.
Signed-off-by: Kir Kolyshkin <kir@openvz.org>