This is the mail archive of the
mailing list for the Cygwin project.
Re: Beginnings of a patch: /etc/hosts
Igor Pechtchanski wrote:
I'm only checking for the existence of the Windows directory where we
are expecting to find the hosts file and such. This is to protect
against the preceding code somehow failing to find the correct
directory. Let's say the script is somehow fooled into generating a
WinNT-style path on a 9x type box: in that case the path won't exist, so
even though the symlink can be created, it won't point to a useful path.
On another note, I'm not sure why you were checking for the presence of
the windows files.
> We could still create dangling symlinks if they are
Precisely the correct behavior.
missing, which will allow the files to be created by editing/saving the
On Win9x systems, hosts and such don't exist until the user creates one.
There's a *.sam ("sample") version of those files by default.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html