Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve detection of proc filesystem that works despite potential open_b... #5965

Closed
wants to merge 1 commit into from

Conversation

snout1979
Copy link

Testing if /proc is a resource with @fopen fails on systems with open_basedir set. Addind /proc to the open_basedir is undesired and not always an option, resulting in a system that uses the HTTP API (with increased risk of timeouts) instead of the async CLI method.

Additionally, by using stat we not only test the existance of /proc, but also confirm it's actually a 'proc' filesystem - just in case.

@mattab mattab closed this in d275dfa Sep 9, 2014
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.

None yet

2 participants