From fe573cdbdf2b01dc8a997b9005c6142fea52d7fd Mon Sep 17 00:00:00 2001 From: Ryan Cui Date: Thu, 27 Sep 2012 15:58:42 -0700 Subject: [PATCH] Fix bug with chroot updating /etc/hosts. enter_chroot.sh was not updating /etc/hosts from the out-of-chroot environment. Make it do that. BUG=None TEST=locally Change-Id: Ieaa337ae90dbc0700c42fa7e4b96faf12d3968cb Reviewed-on: https://gerrit.chromium.org/gerrit/34226 Reviewed-by: David James Commit-Ready: Ryan Cui Tested-by: Ryan Cui --- sdk_lib/enter_chroot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk_lib/enter_chroot.sh b/sdk_lib/enter_chroot.sh index bed09a01d8..f06e4f5d03 100755 --- a/sdk_lib/enter_chroot.sh +++ b/sdk_lib/enter_chroot.sh @@ -166,7 +166,7 @@ env_sync_proc() { while true; do # Sync files - for file in ${sync_files}; do + for file in "${sync_files[@]}"; do if ! cmp /${file} ${FLAGS_chroot}/${file} &> /dev/null; then cp -f /${file} ${FLAGS_chroot}/${file} fi