ct: return positive error code from ct_env_create_real and ct_restore_fn

The most part of vzctl functions return positive error code.
This two functions were exceptions, because they return PID of init
to create netns file. Currently each of these functions creates
netns file by itself.

[kir@: fixed one last case of return -VZ_*]

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed