Don't clear the caller's existing known_hosts file.
Replace truncate call with touch call to avoid truncating user's
existing known_hosts file. We don't want the caller's known_hosts
file to be erased when entering a chroot.
This was introduced with commit add9976e45a9 ("enter_chroot: bind mount
TEST=Hosts file remains intact after this change
Tested-by: Steve Kendall <email@example.com>
Reviewed-by: Mike Frysinger <firstname.lastname@example.org>
1 file changed