You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Colin Patrick McCabe (JIRA)" <ji...@apache.org> on 2013/08/02 23:15:48 UTC

[jira] [Created] (HDFS-5062) org.apache.hadoop.fs.Df should not use bash -c

Colin Patrick McCabe created HDFS-5062:
------------------------------------------

             Summary: 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