From 1de6f431aafba2b5158a2f93a9f37cdcf4279352 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 17 Jan 2003 05:24:28 +0000 Subject: [PATCH] * uinfo.cc (etc::dir_changed): Don't print a warning if can't open /etc, unless debugging. --- winsup/cygwin/ChangeLog | 6 +++++- winsup/cygwin/uinfo.cc | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 3868a2f4c..1fb1bca74 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2003-01-17 Christopher Faylor + + * uinfo.cc (etc::dir_changed): Don't print a warning if can't open + /etc, unless debugging. + 2003-01-17 Pierre Humblet * 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 * cygheap.cc (init_cygheap::etc_changed): Move to uinfo.cc. diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc index 5eb76b100..73614f7b9 100644 --- a/winsup/cygwin/uinfo.cc +++ b/winsup/cygwin/uinfo.cc @@ -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)