David Rodríguez bb511c3f10 [rubygems/rubygems] Don't try to remove previous install folder if it's empty
Ruby ships with empty directories for default gems. If Ruby
installations has unsafe world-writable permissions, we will complain
when about to install a gem that happens to be also a default gem,
because we'll start by removing the previous install folder and that's
supposed to be insecure due to too loose permissions.

However, if the folder is empty, we don't actually need to remove
anything, so we can skip the whole thing, avoiding the errors.

https://github.com/rubygems/rubygems/commit/2f3cd8ac4e
2024-09-02 14:01:15 +00:00
..
2024-08-28 16:16:31 +00:00
2024-09-02 02:29:24 +00:00
2024-08-13 20:56:35 +00:00
2024-08-31 05:14:54 +00:00
2024-05-24 17:19:38 +00:00