From 8d1bda71b4538fe0c4dee14f057645da33443a9e Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 13 Dec 2011 17:46:08 +0000 Subject: [PATCH] * netdb.cc (open_system_file): Avoid MS-DOS path warning. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/netdb.cc | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 6d0f8164d..cb9579f48 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2011-12-13 Corinna Vinschen + + * netdb.cc (open_system_file): Avoid MS-DOS path warning. + 2011-12-13 Corinna Vinschen * path.cc (conv_path_list): Fix a condition. diff --git a/winsup/cygwin/netdb.cc b/winsup/cygwin/netdb.cc index 3ac3d25eb..8cdabff2a 100644 --- a/winsup/cygwin/netdb.cc +++ b/winsup/cygwin/netdb.cc @@ -1,6 +1,6 @@ /* netdb.cc: network database related routines. - Copyright 2002, 2003, 2007, 2010 Red Hat, Inc. + Copyright 2002, 2003, 2007, 2010, 2011 Red Hat, Inc. This file is part of Cygwin. @@ -12,6 +12,7 @@ details. */ #include #include #include +#include /* Locate and open a system network database file. relative_path should be one of the following values: @@ -27,6 +28,7 @@ open_system_file (const char *relative_path) /* system dir path is never longer. */ char win32_name[MAX_PATH]; + user_shared->warned_msdos = true; sys_wcstombs (win32_name, MAX_PATH, windows_system_directory); strcat (win32_name, "drivers\\etc\\"); strcat (win32_name, relative_path); -- 2.43.5