Comply with current umask when generating new app #12048

Merged
merged 1 commit into from Aug 27, 2013

Conversation

Projects
None yet
2 participants
Contributor

tjouan commented Aug 27, 2013

When creating a new application using the default rails generator
(rails new my_app), it will apply some permissions bypassing the
current process umask. The `bin' directory and any files inside it will
always be set a mode of 0755.

This change removes the current umask bits from the mode applied by
the generator on the `bin' directory and its content.

@tjouan tjouan Comply with current umask when generating new app:
  When creating a new application using the default rails generator
(`rails new my_app`), it will apply some permissions bypassing the
current process umask. The `bin' directory and any files inside it will
always be set a mode of 0755.

  This change removes the current umask bits from the mode applied by
the generator on the `bin' directory and its content.
1cb5094

@tenderlove tenderlove added a commit that referenced this pull request Aug 27, 2013

@tenderlove tenderlove Merge pull request #12048 from tjouan/app_generator-bin_perms-umask
Comply with current umask when generating new app
169c214

@tenderlove tenderlove merged commit 169c214 into rails:master Aug 27, 2013

@tenderlove tenderlove added a commit that referenced this pull request Aug 27, 2013

@tenderlove tenderlove Merge pull request #12048 from tjouan/app_generator-bin_perms-umask
Comply with current umask when generating new app
ea01b54

@tenderlove tenderlove added a commit that referenced this pull request Aug 27, 2013

@tenderlove tenderlove Merge pull request #12048 from tjouan/app_generator-bin_perms-umask
Comply with current umask when generating new app
Conflicts:
	railties/lib/rails/generators/rails/app/app_generator.rb
59a3561
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment