hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r1044490 - in /hadoop/common/trunk: CHANGES.txt src/saveVersion.sh
Date Fri, 10 Dec 2010 19:48:53 GMT
Author: cos
Date: Fri Dec 10 19:48:53 2010
New Revision: 1044490

URL: http://svn.apache.org/viewvc?rev=1044490&view=rev
Log:
HADOOP-7038. saveVersion script includes an additional \r while running whoami under windows.
Contributed by Wang Xu.

Modified:
    hadoop/common/trunk/CHANGES.txt
    hadoop/common/trunk/src/saveVersion.sh

Modified: hadoop/common/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/CHANGES.txt?rev=1044490&r1=1044489&r2=1044490&view=diff
==============================================================================
--- hadoop/common/trunk/CHANGES.txt (original)
+++ hadoop/common/trunk/CHANGES.txt Fri Dec 10 19:48:53 2010
@@ -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

Modified: hadoop/common/trunk/src/saveVersion.sh
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/src/saveVersion.sh?rev=1044490&r1=1044489&r2=1044490&view=diff
==============================================================================
--- hadoop/common/trunk/src/saveVersion.sh (original)
+++ hadoop/common/trunk/src/saveVersion.sh Fri Dec 10 19:48:53 2010
@@ -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



Mime
View raw message