ruby-core

Mailing list archive

[#64517] Fw: Re: Ruby and Rails to become Apache Incubator Project — Tetsuya Kitahata <kitahata@99.alumni.u-tokyo.ac.jp>

What do you think? >> Ruby developers

13 messages 2014/08/23

[#64615] [ruby-trunk - Feature #10181] [Open] New method File.openat() — oss-ruby-lang@...

Issue #10181 has been reported by Technorama Ltd..

10 messages 2014/08/28
[#64616] Re: [ruby-trunk - Feature #10181] [Open] New method File.openat() — Eric Wong <normalperson@...> 2014/08/28

I like this feature.

[#64671] Fwd: [ruby-changes:35240] normal:r47322 (trunk): symbol.c (rb_sym2id): do not return garbage object — SASADA Koichi <ko1@...>

Why this fix solve your problem?

9 messages 2014/08/30
[#64672] Re: Fwd: [ruby-changes:35240] normal:r47322 (trunk): symbol.c (rb_sym2id): do not return garbage object — SASADA Koichi <ko1@...> 2014/08/30

(2014/08/30 8:50), SASADA Koichi wrote:

[ruby-core:64232] [ruby-trunk - Bug #10116] [Open] gem with extension but without lib dir gets installed with a lib dir with wrong permissions

From: rfgrimm@...
Date: 2014-08-06 14:48:59 UTC
List: ruby-core #64232
Issue #10116 has been reported by Robert Grimm.

----------------------------------------
Bug #10116: gem with extension but without lib dir gets installed with a lib dir with wrong permissions
https://bugs.ruby-lang.org/issues/10116

* Author: Robert Grimm
* Status: Open
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* ruby -v: ruby 2.1.2p95 (2014-05-08 revision 45877) [amd64-freebsd10]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
When installing a ruby gem that has a C extension but not an explicit lib directory, the created lib directory will have a lib directory that's only readable by root causing non-root users to not be able to load the gem.  That is, the permissions will be 700 instead of 755.  The bug appears to be in Gem::Ext::ExtConfBuilder.build.  A tmp directory is created, that might have 700 permissions.  If the "destent" (lib) doesn't exist, it will rename the tmp directory to "desent" without altering its permissions.

An example gem that exhibits this behavior is the "absolute_time" gem (https://rubygems.org/gems/absolute_time).  I've only tried this on FreeBSD.  When using RVM on OSX at least, the permissions are correct.



-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next