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>
1 file changed