OSDN Git Service

* uinfo.cc (etc::dir_changed): Don't print a warning if can't open /etc, unless
authorcgf <cgf>
Fri, 17 Jan 2003 05:24:27 +0000 (05:24 +0000)
committercgf <cgf>
Fri, 17 Jan 2003 05:24:27 +0000 (05:24 +0000)
debugging.

winsup/cygwin/ChangeLog
winsup/cygwin/uinfo.cc

index 3868a2f..1fb1bca 100644 (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.
index 5eb76b1..73614f7 100644 (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)