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 2a6b61c027e..7fc9b87fadb 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; } diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 0ada8fce9f7..7d1cc17ac91 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -1306,6 +1306,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