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] [Created] (HDFS-5062) org.apache.hadoop.fs.Df should not use bash -c
Date Fri, 02 Aug 2013 21:15:48 GMT
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

Mime
View raw message