HADOOP-7126. Fix file permission setting for RawLocalFileSystem on Windows. Contributed by Po Cheung.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1065901 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9d615bd67d
commit
e82df7e7f7
@ -468,6 +468,9 @@ Release 0.22.0 - Unreleased
|
||||
|
||||
HADOOP-7122. Fix thread leak when shell commands time out. (todd)
|
||||
|
||||
HADOOP-7126. Fix file permission setting for RawLocalFileSystem on Windows.
|
||||
(Po Cheung via shv)
|
||||
|
||||
Release 0.21.1 - Unreleased
|
||||
|
||||
IMPROVEMENTS
|
||||
|
@ -567,7 +567,7 @@ public void setPermission(Path p, FsPermission permission)
|
||||
private static String execCommand(File f, String... cmd) throws IOException {
|
||||
String[] args = new String[cmd.length + 1];
|
||||
System.arraycopy(cmd, 0, args, 0, cmd.length);
|
||||
args[cmd.length] = f.getCanonicalPath();
|
||||
args[cmd.length] = FileUtil.makeShellPath(f, true);
|
||||
String output = Shell.execCommand(args);
|
||||
return output;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user