From 829ad6925f37df886ddada56757d692fbd544fac Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Thu, 18 Feb 2010 15:38:58 -0500 Subject: fix motd-hook in case of more than 4 fields in BUILD_FILE if the BUILD_FILE file had more than 4 fields in it, 'serial' would get all additional fields and would then look wrong in the message. protect from that case by adding a var to 'read'. --- tools/motd-hook | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/motd-hook b/tools/motd-hook index c6bec62d..8c482e8c 100755 --- a/tools/motd-hook +++ b/tools/motd-hook @@ -27,7 +27,7 @@ BUILD_FILE=/var/lib/cloud/data/available.build [ -s "${BUILD_FILE}" ] || exit 0 -read suite build_name name serial < "${BUILD_FILE}" +read suite build_name name serial other < "${BUILD_FILE}" cat <