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

Bugfix for #168: basedir restriction and handling speed=-1 result #257

Closed

Conversation

sausix
Copy link

@sausix sausix commented Nov 26, 2020

Fix for #168 with scandir instead of glob.

Minor fix for better handling /sys/class/net/*/speed returning -1.

lib/OperatingSystems/DefaultOs.php Outdated Show resolved Hide resolved
lib/OperatingSystems/DefaultOs.php Outdated Show resolved Hide resolved
Copy link
Collaborator

@kesselb kesselb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please adjust the code like suggested and sign off the commits. Thanks!

@sausix sausix force-pushed the bugfix/168/basedir-sys-class-net branch 2 times, most recently from 7d22a77 to c51ded1 Compare December 2, 2020 18:37
sausix and others added 3 commits December 2, 2020 20:33
…esult

Signed-off-by: Adrian Sausenthaler <github@sausenthaler.de>
Signed-off-by: Adrian Sausenthaler <github@sausenthaler.de>
Signed-off-by: Adrian Sausenthaler <github@sausenthaler.de>
@sausix sausix force-pushed the bugfix/168/basedir-sys-class-net branch from c51ded1 to 4ff3e3d Compare December 2, 2020 19:36
@kesselb kesselb requested a review from solracsf December 20, 2020 20:10
@kesselb
Copy link
Collaborator

kesselb commented Dec 20, 2020

cc @tuxmaster5000 @HigH-HawK mind to test?

@HigH-HawK
Copy link
Contributor

@kesselb

Release 19.0.6:

Changes look good to me 👍

@come-nc
Copy link
Contributor

come-nc commented Mar 31, 2022

/rebase

@kesselb
Copy link
Collaborator

kesselb commented Jan 28, 2023

Thanks for your pull request 👍

I assume the logic to filter out . and .. is covered by #411.

If you still see the error with speed -1 please submit a new pull request.

@kesselb kesselb closed this Jan 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants