* uinfo.cc (etc::dir_changed): Don't print a warning if can't open /etc, unless

debugging.
This commit is contained in:
Christopher Faylor 2003-01-17 05:24:28 +00:00
parent 14ea50290a
commit 1de6f431aa
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-01-17 Christopher Faylor <cgf@redhat.com>
* uinfo.cc (etc::dir_changed): Don't print a warning if can't open
/etc, unless debugging.
2003-01-17 Pierre Humblet <pierre.humblet@ieee.org>
* grp.cc (read_etc_group): On NT, add a line for gid = -1. Change name
@ -9,7 +14,6 @@
same default uid for Win95 and NT. Call cygheap_user::ontherange to
initialize HOME.
2003-01-16 Christopher Faylor <cgf@redhat.com>
* cygheap.cc (init_cygheap::etc_changed): Move to uinfo.cc.

View File

@ -424,9 +424,11 @@ etc::dir_changed (int n)
path_conv pwd ("/etc");
changed_h = FindFirstChangeNotification (pwd, FALSE,
FILE_NOTIFY_CHANGE_LAST_WRITE);
#ifdef DEBUGGING
if (changed_h == INVALID_HANDLE_VALUE)
system_printf ("Can't open /etc for checking, %E", (char *) pwd,
changed_h);
#endif
}
if (changed_h == INVALID_HANDLE_VALUE)