Skip to content
This repository

wrong file permissions with v0.9.0 #176

Open
cesare opened this Issue · 2 comments

3 participants

SAWADA Tadashi Bill Bates Evan Muehlhausen
SAWADA Tadashi

I cannot run spork 0.9.0, because of a file permission problem.

I tried to unpack the gem with
$ gem unpack spork -v 0.9.0

and checked files in it,

$ find lib bin -type f -print0 | xargs -0 ls -o
-rwx--x--x 1 cesare  460 2012-02-16 01:51 bin/spork
-rw-r--r-- 1 cesare 5266 2012-02-16 01:51 lib/spork.rb
-rw-r--r-- 1 cesare 2505 2012-02-16 01:51 lib/spork/app_framework.rb
-rw-r--r-- 1 cesare  554 2012-02-16 01:51 lib/spork/app_framework/padrino.rb
-rw-r--r-- 1 cesare 2330 2012-02-16 01:51 lib/spork/app_framework/rails.rb
-rw-r--r-- 1 cesare  156 2012-02-16 01:51 lib/spork/app_framework/unknown.rb
-rw------- 1 cesare  474 2012-02-16 01:51 lib/spork/custom_io_streams.rb
-rw------- 1 cesare 3604 2012-02-16 01:51 lib/spork/diagnoser.rb
-rw-r--r-- 1 cesare  456 2012-02-16 01:51 lib/spork/ext/rails-reloader.rb
-rw------- 1 cesare 3750 2012-02-16 01:51 lib/spork/ext/ruby-debug.rb
-rw------- 1 cesare 1787 2012-02-16 01:51 lib/spork/forker.rb
-rw-r--r-- 1 cesare 1135 2012-02-16 01:51 lib/spork/gem_helpers.rb
-rw------- 1 cesare  884 2012-02-16 01:51 lib/spork/run_strategy.rb
-rw------- 1 cesare  752 2012-02-16 01:51 lib/spork/run_strategy/forking.rb
-rwxr-xr-x 1 cesare 3495 2012-02-16 01:51 lib/spork/run_strategy/magazine.rb
-rwx--x--x 1 cesare  799 2012-02-16 01:51 lib/spork/run_strategy/magazine/magazine_slave.rb
-rwx--x--x 1 cesare  734 2012-02-16 01:51 lib/spork/run_strategy/magazine/magazine_slave_provider.rb
-rwx--x--x 1 cesare  223 2012-02-16 01:51 lib/spork/run_strategy/magazine/ring_server.rb
-rw-r--r-- 1 cesare 2924 2012-02-16 01:51 lib/spork/runner.rb
-rw-r--r-- 1 cesare 2593 2012-02-16 01:51 lib/spork/server.rb
-rw-r--r-- 1 cesare 4731 2012-02-16 01:51 lib/spork/test_framework.rb
-rw------- 1 cesare 1056 2012-02-16 01:51 lib/spork/test_framework/cucumber.rb
-rw------- 1 cesare  453 2012-02-16 01:51 lib/spork/test_framework/rspec.rb

The permissions of some .rb files are 0600 or 0711, not readable for users except for the owner.
I think these permissions should be 0644 or 0755.

Bill Bates

I too ran into this when installing spork at the system-level. I modified perms on directories to go+rx and .rb files to go+r. I left the user perms as is. Everything is working now. I suspect this issue is a non-issue for people running spork in RVM.

Evan Muehlhausen

Tracking this down took me an unfortunate amount of time. After having no issue running spork under rbenv, running it system-wide caused a LoadError. Since this only happened with Spork and none of my other gems, my hunch is that this isn't intended behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.