From bde004dcd08f6ceab0eef784517a1499ee7ba4f0 Mon Sep 17 00:00:00 2001 From: Konstantin Boudnik Date: Fri, 10 Dec 2010 19:48:53 +0000 Subject: [PATCH] HADOOP-7038. saveVersion script includes an additional \r while running whoami under windows. Contributed by Wang Xu. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1044490 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 3 +++ src/saveVersion.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index cfa3a62c87..93e3c80a98 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -394,6 +394,9 @@ Release 0.22.0 - Unreleased HADOOP-7057. IOUtils.readFully and IOUtils.skipFully have typo in exception creation's message. (cos) + HADOOP-7038. saveVersion script includes an additional \r while running + whoami under windows. (Wang Xu via cos) + Release 0.21.1 - Unreleased IMPROVEMENTS diff --git a/src/saveVersion.sh b/src/saveVersion.sh index 29bbbcb765..7b8dfdf0f5 100755 --- a/src/saveVersion.sh +++ b/src/saveVersion.sh @@ -23,7 +23,7 @@ unset LC_CTYPE unset LC_TIME version=$1 build_dir=$2 -user=`whoami` +user=`whoami | tr '\n\r' '\n'` date=`date` cwd=`pwd` if [ -d .git ]; then