HDFS-9268. fuse_dfs chown crashes when uid is passed as -1 (cmccabe)
This commit is contained in:
parent
5e718de522
commit
2f1eb2bceb
|
@ -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) {
|
if (ret) {
|
||||||
fprintf(stderr, "fuseConnect: failed to open a libhdfs connection! "
|
fprintf(stderr, "fuseConnectAsThreadUid: failed to open a libhdfs "
|
||||||
"error %d.\n", ret);
|
"connection! error %d.\n", ret);
|
||||||
ret = -EIO;
|
ret = -EIO;
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2142,6 +2142,8 @@ Release 2.8.0 - UNRELEASED
|
||||||
HDFS-9304. Add HdfsClientConfigKeys class to TestHdfsConfigFields
|
HDFS-9304. Add HdfsClientConfigKeys class to TestHdfsConfigFields
|
||||||
#configurationClasses. (Mingliang Liu via wheat9)
|
#configurationClasses. (Mingliang Liu via wheat9)
|
||||||
|
|
||||||
|
HDFS-9268. fuse_dfs chown crashes when uid is passed as -1 (cmccabe)
|
||||||
|
|
||||||
Release 2.7.2 - UNRELEASED
|
Release 2.7.2 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
Loading…
Reference in New Issue