Fix weirdness on vzctl enter

Commit 58c06592e added logging for vzctl exec and vzctl enter.
Unfortunately it also added a bug: possible errors after vzctl enter
go into shell input, like this:

	# vzctl enter 248
	entered into CT 248
	xxxxx:/# 2012-01-17T13:25:20+0100 vzctl : CT 248 : Open /dev/pts/0
	-bash: 2012-01-17T13:25:20+0100: command not found

http://bugzilla.openvz.org/2139
http://bugzilla.openvz.org/2146

The fix is to set log file fd to NULL before entering (as it was before
the above mentioned commit).

Reported-by: Marc Perkel <marc@perkel.com>
Reported-by: Michal Grzedzicki <lazy@iq.pl>
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed