Skip to content

Makes permission failures non-fatal when looking for .scalding_repl files#1479

Merged
ianoc merged 1 commit intotwitter:developfrom
ulyssepence:ignore-non-readable-files
Jan 21, 2016
Merged

Makes permission failures non-fatal when looking for .scalding_repl files#1479
ianoc merged 1 commit intotwitter:developfrom
ulyssepence:ignore-non-readable-files

Conversation

@ulyssepence
Copy link
Copy Markdown
Contributor

It seems that on unixy systems, given the following permission tree structure:

d--x--x--x  dir/
drwxr-xr-x  dir/file

anybody can still read dir/file. When we're looking for .scalding_repl files, we don't take this into consideration. Now, instead of failing in this situation, we println the problem and ignore it.

BTW is there a reason we don't use System.getenv("HOME") here?

@ianoc
Copy link
Copy Markdown
Contributor

ianoc commented Jan 21, 2016

Non $HOME is because you could have more local overrides to the setting in different working paths you invoke the repl from. Or so goes the thinking anyway

@johnynek
Copy link
Copy Markdown
Contributor

looks fine to me

ianoc added a commit that referenced this pull request Jan 21, 2016
Makes permission failures non-fatal when looking for .scalding_repl files
@ianoc ianoc merged commit 811bcad into twitter:develop Jan 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants