Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 231956

Summary: java-ant-2.eclass: java-ant_bsfix has bad find arguments
Product: Gentoo Linux Reporter: James Le Cuirot <chewi>
Component: [OLD] JavaAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: java-ant-2.eclass.patch

Description James Le Cuirot gentoo-dev 2008-07-16 11:56:09 UTC
When using JAVA_PKG_BSFIX_NAME with multiple filenames, you need brackets around the or'd -name conditions, otherwise it could match directories as well as files. Unlikely but hey. Patch attached.
Comment 1 James Le Cuirot gentoo-dev 2008-07-16 11:56:37 UTC
Created attachment 160545 [details, diff]
java-ant-2.eclass.patch
Comment 2 Patrice Clement gentoo-dev 2015-01-22 23:07:40 UTC
This patch is legit. I think we should include it in java-ant-2.eclass. @Java: Can I go ahead?
Comment 3 Patrice Clement gentoo-dev 2015-01-23 22:49:00 UTC
There you go:

+  23 Jan 2015; Patrice Clement <monsieurp@gentoo.org> java-ant-2.eclass:
+  Sanitise find arguments when using JAVA_PKG_BSFIX_NAME option. Fix #231956.
+

Thanks James.