diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2011-12-13 17:46:08 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2011-12-13 17:46:08 +0000 |
commit | 8d1bda71b4538fe0c4dee14f057645da33443a9e (patch) | |
tree | 0ac63e3cf4c39cd0a0d79d5a9886439c0ff5f3a4 | |
parent | 5250e27f71932784dc97a17b4ab0e9b2b5dbcef7 (diff) | |
download | newlib-8d1bda71b4538fe0c4dee14f057645da33443a9e.zip newlib-8d1bda71b4538fe0c4dee14f057645da33443a9e.tar.gz newlib-8d1bda71b4538fe0c4dee14f057645da33443a9e.tar.bz2 |
* netdb.cc (open_system_file): Avoid MS-DOS path warning.
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/netdb.cc | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 6d0f816..cb9579f 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,9 @@ 2011-12-13 Corinna Vinschen <vinschen@redhat.com> + * netdb.cc (open_system_file): Avoid MS-DOS path warning. + +2011-12-13 Corinna Vinschen <vinschen@redhat.com> + * path.cc (conv_path_list): Fix a condition. (cygwin_conv_path): Revert WIN_A conversion to current locale codeset. diff --git a/winsup/cygwin/netdb.cc b/winsup/cygwin/netdb.cc index 3ac3d25..8cdabff 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 <stdio.h> #include <stdlib.h> #include <netdb.h> +#include <shared_info.h> /* 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); |