Browse Source

HADOOP-10780. hadoop_user_info_alloc fails on FreeBSD due to incorrect sysconf use (trtrmitya via cmccabe)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1610470 13f79535-47bb-0310-9956-ffa450edef68
Colin McCabe 11 years ago
parent
commit
425616861b

+ 3 - 0
hadoop-common-project/hadoop-common/CHANGES.txt

@@ -407,6 +407,9 @@ Release 2.6.0 - UNRELEASED
     HADOOP-10507. FsShell setfacl can throw ArrayIndexOutOfBoundsException when
     HADOOP-10507. FsShell setfacl can throw ArrayIndexOutOfBoundsException when
     no perm is specified. (Stephen Chu and Sathish Gurram via cnauroth)
     no perm is specified. (Stephen Chu and Sathish Gurram via cnauroth)
 
 
+    HADOOP-10780. hadoop_user_info_alloc fails on FreeBSD due to incorrect
+    sysconf use (Dmitry Sivachenko via Colin Patrick McCabe)
+
 Release 2.5.0 - UNRELEASED
 Release 2.5.0 - UNRELEASED
 
 
   INCOMPATIBLE CHANGES
   INCOMPATIBLE CHANGES

+ 1 - 1
hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/security/hadoop_user_info.c

@@ -36,7 +36,7 @@
 struct hadoop_user_info *hadoop_user_info_alloc(void)
 struct hadoop_user_info *hadoop_user_info_alloc(void)
 {
 {
   struct hadoop_user_info *uinfo;
   struct hadoop_user_info *uinfo;
-  size_t buf_sz;
+  long buf_sz;
   char *buf;
   char *buf;
 
 
   uinfo = calloc(1, sizeof(struct hadoop_user_info));
   uinfo = calloc(1, sizeof(struct hadoop_user_info));