hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r1077123 - /hadoop/common/branches/branch-0.20-security-patches/src/c++/task-controller/task-controller.c
Date Fri, 04 Mar 2011 03:43:19 GMT
Author: omalley
Date: Fri Mar  4 03:43:18 2011
New Revision: 1077123

URL: http://svn.apache.org/viewvc?rev=1077123&view=rev
Log:
commit bad18a27a51ca1d11d9219c1e186f5bee4d141a3
Author: Hemanth Yamijala <yhemanth@friendchild-lm.(none)>
Date:   Sat Jan 23 20:01:51 2010 +0530

    MAPREDUCE:1284 from https://issues.apache.org/jira/secure/attachment/12427577/MR-1284.patch
    
    +++ b/YAHOO-CHANGES.txt
    +    MAPREDUCE-1284. Fix fts_open() call in task-controller that was failing
    +    LinuxTaskController unit tests. (Ravi Gummadi via yhemanth)
    +

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

Modified: hadoop/common/branches/branch-0.20-security-patches/src/c++/task-controller/task-controller.c
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-patches/src/c%2B%2B/task-controller/task-controller.c?rev=1077123&r1=1077122&r2=1077123&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-patches/src/c++/task-controller/task-controller.c
(original)
+++ hadoop/common/branches/branch-0.20-security-patches/src/c++/task-controller/task-controller.c
Fri Mar  4 03:43:18 2011
@@ -271,7 +271,7 @@ static int secure_path(const char *path,
     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;



Mime
View raw message