Open bmwiedemann opened 1 year ago
found another affected package: eclipse-jgit
-/usr/share/eclipse/droplets/jgit/plugins/org.hamcrest_2.2.0.jar 0 (none) 120777 root root 0 4294967295 ../../../../java/hamcrest/library.jar
-/usr/share/eclipse/droplets/jgit/plugins/org.junit_4.13.2.jar 0 (none) 120777 root root 0 4294967295 ../../../../java/junit.jar
-/usr/share/eclipse/droplets/jgit/plugins/org.kohsuke.args4j_2.33.0.jar 0 (none) 120777 root root 0 4294967295 ../../../../java/args4j/args4j.jar
+/usr/share/eclipse/droplets/jgit/plugins/org.hamcrest_2.2.0.jar 0 (none) 120777 root root 0 4294967295 ../../../../java/hamcrest/hamcrest.jar
+/usr/share/eclipse/droplets/jgit/plugins/org.junit_4.13.2.jar 0 (none) 120777 root root 0 4294967295 ../../../../java/junit4.jar
+/usr/share/eclipse/droplets/jgit/plugins/org.kohsuke.args4j_2.33.0.jar 0 (none) 120777 root root 0 4294967295 ../../../../java/args4j.jar
The code uses the file name to decide what file type it is. I think it should use file
to decide, then a broken symlink could be detected.
Steps to reproduce:
produces:
This bug was found, while working on reproducible builds for openSUSE with fstrba.