hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1206667 - in /hadoop/common/branches/branch-0.20-security: CHANGES.txt src/c++/task-controller/test/test-task-controller.c
Date Sun, 27 Nov 2011 05:38:08 GMT
Author: eli
Date: Sun Nov 27 05:38:07 2011
New Revision: 1206667

URL: http://svn.apache.org/viewvc?rev=1206667&view=rev
Log:
MAPREDUCE-2376. test-task-controller fails if run as a userid < 1000. Contributed by Todd
Lipcon

Modified:
    hadoop/common/branches/branch-0.20-security/CHANGES.txt
    hadoop/common/branches/branch-0.20-security/src/c++/task-controller/test/test-task-controller.c

Modified: hadoop/common/branches/branch-0.20-security/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security/CHANGES.txt?rev=1206667&r1=1206666&r2=1206667&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security/CHANGES.txt (original)
+++ hadoop/common/branches/branch-0.20-security/CHANGES.txt Sun Nov 27 05:38:07 2011
@@ -49,6 +49,9 @@ Release 0.20.206.0 - unreleased
     MAPREDUCE-2905. Fix fair scheduler to prevent clumping of tasks when
     assignmultiple is enabled. (todd)
 
+    MAPREDUCE-2376. test-task-controller fails if run as a userid < 1000.
+    (todd via eli)
+
   IMPROVEMENTS
 
     MAPREDUCE-3008. [Gridmix] Improve cumulative CPU usage emulation for 

Modified: hadoop/common/branches/branch-0.20-security/src/c++/task-controller/test/test-task-controller.c
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security/src/c%2B%2B/task-controller/test/test-task-controller.c?rev=1206667&r1=1206666&r2=1206667&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security/src/c++/task-controller/test/test-task-controller.c
(original)
+++ hadoop/common/branches/branch-0.20-security/src/c++/task-controller/test/test-task-controller.c
Sun Nov 27 05:38:07 2011
@@ -795,7 +795,7 @@ int main(int argc, char **argv) {
 
   if (getuid() == 0 && argc == 2) {
     username = argv[1];
-  } else {
+  } else if ((username = getenv("TC_TEST_USERNAME")) == NULL) {
     username = strdup(getpwuid(getuid())->pw_name);
     my_username = 1;
   }



Mime
View raw message