[ 
https://issues.apache.org/jira/browse/HDFS-5062?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Colin Patrick McCabe resolved HDFS-5062.
----------------------------------------

    Resolution: Duplicate
    
> org.apache.hadoop.fs.Df should not use bash -c
> ----------------------------------------------
>
>                 Key: HDFS-5062
>                 URL: https://issues.apache.org/jira/browse/HDFS-5062
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Colin Patrick McCabe
>            Priority: Minor
>
> {{org.apache.hadoop.fs.Df}} shouldn't use {{bash -c}}.  The only reason why 
> it is using it right now is to combine stderr and stdout, something that can 
> be done easily from Java.
> {{bash}} may not be present on all systems, so having it as a dependency is 
> undesirable.  There are also potential problems in cases where paths contain 
> shell metacharacters.  Finally, having this code here encourages people to 
> copy this use of bash, potentially introducing more shell injection flaws.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to