HDFS-4438. TestDomainSocket fails when system umask is set to 0002. Contributed by Colin Patrick McCabe.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/HDFS-347@1438279 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Aaron Myers 2013-01-25 00:39:02 +00:00
parent f5ab88b5b7
commit 554774c6d1
2 changed files with 3 additions and 1 deletions

View File

@ -646,7 +646,7 @@ public class TestDomainSocket {
*/
private static void testValidateSocketPath(String str, String prefix)
throws IOException {
int skipComponents = 0;
int skipComponents = 1;
File prefixFile = new File(prefix);
while (true) {
prefixFile = prefixFile.getParentFile();

View File

@ -35,3 +35,5 @@ HDFS-4417. Fix case where local reads get disabled incorrectly
(Colin Patrick McCabe and todd via todd)
HDFS-4433. Make TestPeerCache not flaky (Colin Patrick McCabe via todd)
HDFS-4438. TestDomainSocket fails when system umask is set to 0002. (Colin Patrick McCabe via atm)