Shell.java has a hardcoded path to /bin/ls which is not correct on all platforms, eg. not on NixOS.
(see HADOOP-13457 for a similar issue)
Do we introduce any security risk by doing this? That a malicious version of ls has got onto the path?
Given we did the change for bin/bash, I doubt there is any risk —just need to be thorough.
This message was automatically generated.
LGTM; discussion in previous JIRAs imply there's no security issues here.
Committed to 2.8+. Thanks!
SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #10781 (See https://builds.apache.org/job/Hadoop-trunk-Commit/10781/)
HADOOP-13797 Remove hardcoded absolute path for ls. Contributed by (stevel: rev f76895573d0166b4b582ff69c3f9c159ab14661f)