You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-commits@hadoop.apache.org by yh...@apache.org on 2009/12/18 07:31:24 UTC

svn commit: r892153 - in /hadoop/mapreduce/trunk: CHANGES.txt src/c++/task-controller/task-controller.c

Author: yhemanth
Date: Fri Dec 18 06:31:21 2009
New Revision: 892153

URL: http://svn.apache.org/viewvc?rev=892153&view=rev
Log:
MAPREDUCE-1284. Fix fts_open() call in task-controller that was failing LinuxTaskController unit tests. Contributed by Ravi Gummadi.

Modified:
    hadoop/mapreduce/trunk/CHANGES.txt
    hadoop/mapreduce/trunk/src/c++/task-controller/task-controller.c

Modified: hadoop/mapreduce/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/mapreduce/trunk/CHANGES.txt?rev=892153&r1=892152&r2=892153&view=diff
==============================================================================
--- hadoop/mapreduce/trunk/CHANGES.txt (original)
+++ hadoop/mapreduce/trunk/CHANGES.txt Fri Dec 18 06:31:21 2009
@@ -1027,3 +1027,7 @@
 
     MAPREDUCE-1222. Add an option to exclude numeric IP addresses in topologies
     processed by Mumak. (Hong Tang via cdouglas)
+
+    MAPREDUCE-1284. Fix fts_open() call in task-controller that was failing
+    LinuxTaskController unit tests. (Ravi Gummadi via yhemanth)
+

Modified: hadoop/mapreduce/trunk/src/c++/task-controller/task-controller.c
URL: http://svn.apache.org/viewvc/hadoop/mapreduce/trunk/src/c%2B%2B/task-controller/task-controller.c?rev=892153&r1=892152&r2=892153&view=diff
==============================================================================
--- hadoop/mapreduce/trunk/src/c++/task-controller/task-controller.c (original)
+++ hadoop/mapreduce/trunk/src/c++/task-controller/task-controller.c Fri Dec 18 06:31:21 2009
@@ -272,7 +272,7 @@
     mode_t file_mode, mode_t dir_mode) {
   FTS *tree = NULL; // the file hierarchy
   FTSENT *entry = NULL; // a file in the hierarchy
-  char *paths[] = { (char *) path };
+  char *paths[] = { (char *) path, NULL };//array needs to be NULL-terminated
   int process_path = 0;
   int dir = 0;
   int error_code = 0;