Commits
Kir Kolyshkin authored b8f60495c1a
Revert "Check for memory granted by get_dist_name" This reverts commit 80ad89e384e04bd0835a13f246840f4f71113263. The commit have a few problems, unfortunately I overlooked it. 1. return NULL from get_dist_name() is perfectly valid, it means that both tmpl->dist nor tmpl->ostmpl are NULL. This NULL is later handled by read_dist_actions(). With this patch return NULL from get_dist_name() becomes an error, but there is no error! 2. return code VZ_SET_NAME_ERROR is just wrong. 3. In vps_start_custom() we silently fail if OSTEMPLATE is not specified in CT config. This leads to vzctl start to silently fail to start a CT and exit with the wrong exit code (see 2). (cherry picked from commit 9588ecbb8c8e3b628a1187e88d664662b83c97d5)