hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Patrick McCabe (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HDFS-5062) org.apache.hadoop.fs.Df should not use bash -c
Date Fri, 02 Aug 2013 22:03:49 GMT

     [ 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

View raw message