[jira] [Updated] (HADOOP-8621) FileUtil.symLink fails if spaces in path
[ https://issues.apache.org/jira/browse/HADOOP-8621?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Fuller updated HADOOP-8621: -- Attachment: hadoop-8621.txt Adding patch with unit test and fix. > FileUtil.symLink fails if spaces in path > > > Key: HADOOP-8621 > URL: https://issues.apache.org/jira/browse/HADOOP-8621 > Project: Hadoop Common > Issue Type: Bug >Reporter: Robert Fuller >Priority: Minor > Attachments: hadoop-8621.txt, patch.txt > > > the 'ln -s' command fails in the current implementation if there is a space > in the path for the target or linkname. A small change resolves the issue. > String cmd = "ln -s " + target + " " + linkname; > //Process p = Runtime.getRuntime().exec(cmd, null); //broken > Process p = Runtime.getRuntime().exec(new > String[]{"ln","-s",target,linkname}, null); -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HADOOP-8621) FileUtil.symLink fails if spaces in path
[ https://issues.apache.org/jira/browse/HADOOP-8621?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Fuller updated HADOOP-8621: -- Attachment: patch.txt example fix attached. > FileUtil.symLink fails if spaces in path > > > Key: HADOOP-8621 > URL: https://issues.apache.org/jira/browse/HADOOP-8621 > Project: Hadoop Common > Issue Type: Bug >Reporter: Robert Fuller >Priority: Minor > Attachments: patch.txt > > > the 'ln -s' command fails in the current implementation if there is a space > in the path for the target or linkname. A small change resolves the issue. > String cmd = "ln -s " + target + " " + linkname; > //Process p = Runtime.getRuntime().exec(cmd, null); //broken > Process p = Runtime.getRuntime().exec(new > String[]{"ln","-s",target,linkname}, null); -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Created] (HADOOP-8621) FileUtil.symLink fails if spaces in path
Robert Fuller created HADOOP-8621: - Summary: FileUtil.symLink fails if spaces in path Key: HADOOP-8621 URL: https://issues.apache.org/jira/browse/HADOOP-8621 Project: Hadoop Common Issue Type: Bug Reporter: Robert Fuller Priority: Minor the 'ln -s' command fails in the current implementation if there is a space in the path for the target or linkname. A small change resolves the issue. String cmd = "ln -s " + target + " " + linkname; //Process p = Runtime.getRuntime().exec(cmd, null); //broken Process p = Runtime.getRuntime().exec(new String[]{"ln","-s",target,linkname}, null); -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira