hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmcc...@apache.org
Subject hadoop git commit: HDFS-9268. fuse_dfs chown crashes when uid is passed as -1 (cmccabe)
Date Mon, 26 Oct 2015 20:33:36 GMT
Repository: hadoop
Updated Branches:
  refs/heads/trunk 5e718de52 -> 2f1eb2bce


HDFS-9268. fuse_dfs chown crashes when uid is passed as -1 (cmccabe)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/2f1eb2bc
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/2f1eb2bc
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/2f1eb2bc

Branch: refs/heads/trunk
Commit: 2f1eb2bceb1df5f27649a514246b38b9ccf60cba
Parents: 5e718de
Author: Colin Patrick Mccabe <cmccabe@cloudera.com>
Authored: Mon Oct 26 13:33:22 2015 -0700
Committer: Colin Patrick Mccabe <cmccabe@cloudera.com>
Committed: Mon Oct 26 13:33:22 2015 -0700

----------------------------------------------------------------------
 .../src/main/native/fuse-dfs/fuse_impls_chown.c                | 6 +++---
 hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt                    | 2 ++
 2 files changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/2f1eb2bc/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/fuse-dfs/fuse_impls_chown.c
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/fuse-dfs/fuse_impls_chown.c
b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/fuse-dfs/fuse_impls_chown.c
index 2a6b61c..7fc9b87 100644
--- a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/fuse-dfs/fuse_impls_chown.c
+++ b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/fuse-dfs/fuse_impls_chown.c
@@ -61,10 +61,10 @@ int dfs_chown(const char *path, uid_t uid, gid_t gid)
     }
   }
 
-  ret = fuseConnect(user, fuse_get_context(), &conn);
+  ret = fuseConnectAsThreadUid(&conn);
   if (ret) {
-    fprintf(stderr, "fuseConnect: failed to open a libhdfs connection!  "
-            "error %d.\n", ret);
+    fprintf(stderr, "fuseConnectAsThreadUid: failed to open a libhdfs "
+            "connection!  error %d.\n", ret);
     ret = -EIO;
     goto cleanup;
   }

http://git-wip-us.apache.org/repos/asf/hadoop/blob/2f1eb2bc/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
index c748d29..3b10893 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
+++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
@@ -2142,6 +2142,8 @@ Release 2.8.0 - UNRELEASED
     HDFS-9304. Add HdfsClientConfigKeys class to TestHdfsConfigFields
     #configurationClasses. (Mingliang Liu via wheat9)
 
+    HDFS-9268. fuse_dfs chown crashes when uid is passed as -1 (cmccabe)
+
 Release 2.7.2 - UNRELEASED
 
   INCOMPATIBLE CHANGES


Mime
View raw message