Amend previous commit of HDFS-3626: accidentally included a hunk from HADOOP-8621 in svn commit. Reverting that hunk
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1365818 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d7fdcea8bf
commit
76ec7feb54
|
@ -611,7 +611,7 @@ public class FileUtil {
|
||||||
*/
|
*/
|
||||||
public static int symLink(String target, String linkname) throws IOException{
|
public static int symLink(String target, String linkname) throws IOException{
|
||||||
String cmd = "ln -s " + target + " " + linkname;
|
String cmd = "ln -s " + target + " " + linkname;
|
||||||
Process p = Runtime.getRuntime().exec(new String[]{"ln","-s",target,linkname}, null);
|
Process p = Runtime.getRuntime().exec(cmd, null);
|
||||||
int returnVal = -1;
|
int returnVal = -1;
|
||||||
try{
|
try{
|
||||||
returnVal = p.waitFor();
|
returnVal = p.waitFor();
|
||||||
|
|
Loading…
Reference in New Issue