public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: init_cygheap::etc_changed: Can't open /etc for checking, Win32 error
@ 2002-09-17  2:38 Christian Koessel
  2002-09-17 11:23 ` Christopher Faylor
  0 siblings, 1 reply; 7+ messages in thread
From: Christian Koessel @ 2002-09-17  2:38 UTC (permalink / raw)
  To: cygwin

In the meantime I took a look at the cygwin sources and I found the
reason for the error:

On Sep 09 2001 the etc_changed()-function was added to cygheap.cc. Its
purpose is to detect a change to the group or passwd files while cygwin
is running and it seems to be called every time when rights have to be
checked. This is achieved by using the Win32
FindFirstChangeNotification() method which monitors a directory (here
/etc) for changes. The function is called with the
FILE_NOTIFY_CHANGE_LAST_WRITE option.
The problem is that this function does not work on drives with a non
NTFS file system and returns INVALID_HANDLE. This leads to the error
message 'init_cygheap::etc_changed: Can't open /etc for checking, Win32
error 2'. After this the function returns 0, which means that there was
no change to /etc.

So the only thing that goes wrong is that you always get that error
message and that changes to /etc are not detected while cygwin is
running.
A possibility to fix the problem could be to use GetVolumeInformation()
to retrieve information about the file system when /etc is mounted and
to maintain a flag which tells if directory change notifications are
supported or not.

I will try to build my own personal patch of the cygwin1.dll which the
error message just commented out...

Regards,

Christian Koessel

Gmuender ErsatzKasse GEK
Abteilung Information und Kommunikation
Gottlieb-Daimler-Str. 19
D-73529 Schwaebisch Gmuend

E-Mail: christian.koessel@gek.de
Internet: http://www.gek.de

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: init_cygheap::etc_changed: Can't open /etc for checking, Win32 error
  2002-09-17  2:38 init_cygheap::etc_changed: Can't open /etc for checking, Win32 error Christian Koessel
@ 2002-09-17 11:23 ` Christopher Faylor
  0 siblings, 0 replies; 7+ messages in thread
From: Christopher Faylor @ 2002-09-17 11:23 UTC (permalink / raw)
  To: cygwin

On Tue, Sep 17, 2002 at 10:22:07AM +0200, Christian Koessel wrote:
>In the meantime I took a look at the cygwin sources and I found the
>reason for the error:
>
>On Sep 09 2001 the etc_changed()-function was added to cygheap.cc. Its
>purpose is to detect a change to the group or passwd files while cygwin
>is running and it seems to be called every time when rights have to be
>checked. This is achieved by using the Win32
>FindFirstChangeNotification() method which monitors a directory (here
>/etc) for changes. The function is called with the
>FILE_NOTIFY_CHANGE_LAST_WRITE option.
>The problem is that this function does not work on drives with a non
>NTFS file system and returns INVALID_HANDLE. This leads to the error
>message 'init_cygheap::etc_changed: Can't open /etc for checking, Win32
>error 2'. After this the function returns 0, which means that there was
>no change to /etc.

The function works on non-NTFS filesystems.  You, yourself, noted that
it works on directories exported from a Samba server.  It also works on
Windows 9x which doesn't natively understand NTFS filesystems.

It apparently doesn't work on a Novell netware drive.  That's been noted
repeatedly here.  It sounds like a netware bug to me.

cgf
--
Please do not send me personal email with cygwin questions.
Use the resources at http://cygwin.com/ .

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: init_cygheap::etc_changed: Can't open /etc for checking, Win32 error
  2002-10-30 22:33 ` Christopher Faylor
@ 2002-10-31  6:12   ` Larry Hall (RFK Partners, Inc)
  0 siblings, 0 replies; 7+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2002-10-31  6:12 UTC (permalink / raw)
  To: cygwin

At 09:10 PM 10/30/2002, Christopher Faylor wrote:
>On Wed, Oct 30, 2002 at 06:19:37PM -0500, lhall@pop.ma.ultranet.com wrote:
> >Sounds like there was more to this thread but I can't find it.
>
>The message that is being replied to is more than a month old and the
>mailing list archive seems to be screwed up again.
>
>It's the standard "patches gratefully accepted" scenario, though.



Ah, OK.  I thought it sounded somewhat familiar but wanted to review
the thread given the rather stern comment.    Seems Dennis was overstating
the status-quo a bit.

Thanks,



Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: init_cygheap::etc_changed: Can't open /etc for checking, Win32 error
  2002-10-30 18:38 lhall
@ 2002-10-30 22:33 ` Christopher Faylor
  2002-10-31  6:12   ` Larry Hall (RFK Partners, Inc)
  0 siblings, 1 reply; 7+ messages in thread
From: Christopher Faylor @ 2002-10-30 22:33 UTC (permalink / raw)
  To: cygwin

On Wed, Oct 30, 2002 at 06:19:37PM -0500, lhall@pop.ma.ultranet.com wrote:
>Sounds like there was more to this thread but I can't find it.

The message that is being replied to is more than a month old and the
mailing list archive seems to be screwed up again.

It's the standard "patches gratefully accepted" scenario, though.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: init_cygheap::etc_changed: Can't open /etc for checking, Win32 error
@ 2002-10-30 18:38 lhall
  2002-10-30 22:33 ` Christopher Faylor
  0 siblings, 1 reply; 7+ messages in thread
From: lhall @ 2002-10-30 18:38 UTC (permalink / raw)
  To: dennis, cygwin

Sounds like there was more to this thread but I can't find it.
Anyway, I'm not sure where you got the idea that no one will be
fixing any issue in this regard.  Certainly if no one is going 
to fix the issue, no one is going to make a temporary fix. ;-)
Perhaps others aren't seeing the problem you're seeing.  Did 
the email thread of this issue contain any information about 
the details of the problem you saw?  Is this something that you're
willing to spend some time tracking down?  Sorry if I'm rehashing
things.  Perhaps a pointer to the start of this thread is all that's
needed.

Larry


Original Message:
-----------------
From: Dennis Heimbigner dennis@cs.colorado.edu
Date: Wed, 30 Oct 2002 15:27:50 -0700
To: cygwin@cygwin.com
Subject: Re: init_cygheap::etc_changed: Can't open /etc for checking, Win32
error


The following does not appear to be correct.  I use Win98
and it has occurred since 1.13.6 when I am doing a normal
install into d:\tools\cygwin13 (a FAT32 file system).

It appears that no one is willing to actually
solve this problem.
Can we do a temporary fix by including a test for some
environment variable or something so that the error
gets suppressed?

> The function works on non-NTFS filesystems.  You, yourself, noted that
> it works on directories exported from a Samba server.  It also works on
> Windows 9x which doesn't natively understand NTFS filesystems.
> 
> It apparently doesn't work on a Novell netware drive.  That's been noted
> repeatedly here.  It sounds like a netware bug to me.
> 
> cgf
> 



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: init_cygheap::etc_changed: Can't open /etc for checking, Win32 error
@ 2002-10-30 18:18 Dennis Heimbigner
  0 siblings, 0 replies; 7+ messages in thread
From: Dennis Heimbigner @ 2002-10-30 18:18 UTC (permalink / raw)
  To: cygwin

The following does not appear to be correct.  I use Win98
and it has occurred since 1.13.6 when I am doing a normal
install into d:\tools\cygwin13 (a FAT32 file system).

It appears that no one is willing to actually
solve this problem.
Can we do a temporary fix by including a test for some
environment variable or something so that the error
gets suppressed?

> The function works on non-NTFS filesystems.  You, yourself, noted that
> it works on directories exported from a Samba server.  It also works on
> Windows 9x which doesn't natively understand NTFS filesystems.
> 
> It apparently doesn't work on a Novell netware drive.  That's been noted
> repeatedly here.  It sounds like a netware bug to me.
> 
> cgf
> 



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* init_cygheap::etc_changed: Can't open /etc for checking, Win32 error
@ 2002-09-17  1:24 Christian Koessel
  0 siblings, 0 replies; 7+ messages in thread
From: Christian Koessel @ 2002-09-17  1:24 UTC (permalink / raw)
  To: cygwin

Hello,

I had the often mentioned problem with the init_cygheap::etc_changed
error when I moved my cygwin installation from my local NT 4 drive to a
Novell netware drive. I experimented a little bit and the problem is
definitely caused by the netware drive. As soon as I'm mounting /etc on
a netware drive the error occurs. Mounting /etc on a NT/W2K server (or
Samba server) works fine.

I guess the /etc directory with the group and passwd file needs to be
opened with special access rights or methods which are not available on
netware drives (at least for normal users). Switching off NT security
(CYGWIN=nontsec) doesn't help.

My goal is to make cygwin available to all NT users in the network
without the need to install it on every machine. The only thing that has
to be done before the first use is to mount /, /usr/bin, /usr/lib (and
/etc on a non netware drive). This can be done by importing the
appropriate registry keys under HKLM/Software/Cygnus Solutions/Cygwin
with regedit.exe.

Regards,

Christian Koessel

Gmuender ErsatzKasse GEK
Abteilung Information und Kommunikation
Gottlieb-Daimler-Str. 19
D-73529 Schwaebisch Gmuend

E-Mail: christian.koessel@gek.de
Internet: http://www.gek.de

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-10-31 13:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-17  2:38 init_cygheap::etc_changed: Can't open /etc for checking, Win32 error Christian Koessel
2002-09-17 11:23 ` Christopher Faylor
  -- strict thread matches above, loose matches on Subject: below --
2002-10-30 18:38 lhall
2002-10-30 22:33 ` Christopher Faylor
2002-10-31  6:12   ` Larry Hall (RFK Partners, Inc)
2002-10-30 18:18 Dennis Heimbigner
2002-09-17  1:24 Christian Koessel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).