Closed Romulus10 closed 7 years ago
I'm not sure if that will fix it. The issue is that the file isn't readable by all when the gem is installed, it doesn't need to be executable: https://github.com/rapid7/metasploit-omnibus/blob/master/config/software/metasploit-framework.rb#L73
I think this might be due to an overly-restrictive umask being set when the gem was last built (or maybe it was a buggy version of the gem command).
I see what you're saying. The read permissions are present now in the repository version, but now that I'm looking again it might not carry over when installed via gem.
Sorry, had a moment there - that's exactly what it was before. Well I thought I had an idea...
This whole gem is just one file though, and hasn't been updated in 7 years. I imagine we could probably just embed a copy and not miss out on much.
Agreed. It might be relatively painless depending on how many places we need to change where we're looking for robots.rb
Changed the file permissions for
lib/robots.rb
from 644 to 755. This might not be ideal, but for now it patches issue #6.