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

[fix] #195 No entries written to C:/Windows/system32/drivers/etc/hosts #202

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Arenoros
Copy link

@Arenoros Arenoros commented Dec 1, 2021

It's code generate invalid cmd file like:

>>"C:/Windows/system32/drivers/etc/hosts" echo 192.168.100.10  lesson1  # ...

which is not needed because we have already checked the write permissions on the line:
119: if !File.writable_real?(@@hosts_path)

@scm6079
Copy link

scm6079 commented Oct 13, 2022

I can confirm that this patch worked for our team as well in Windows 10, which was not otherwise usable. It would be nice to have this included in a release.

Copy link

@scm6079 scm6079 left a comment

Choose a reason for hiding this comment

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

Reviewed enterprise-wide, and in use for a long time.

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.

2 participants