* netdb.cc (open_system_file): Avoid MS-DOS path warning.

This commit is contained in:
Corinna Vinschen 2011-12-13 17:46:08 +00:00
parent 5250e27f71
commit 8d1bda71b4
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
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> 2011-12-13 Corinna Vinschen <vinschen@redhat.com>
* path.cc (conv_path_list): Fix a condition. * path.cc (conv_path_list): Fix a condition.

View File

@ -1,6 +1,6 @@
/* netdb.cc: network database related routines. /* 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. This file is part of Cygwin.
@ -12,6 +12,7 @@ details. */
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <netdb.h> #include <netdb.h>
#include <shared_info.h>
/* Locate and open a system network database file. relative_path /* Locate and open a system network database file. relative_path
should be one of the following values: should be one of the following values:
@ -27,6 +28,7 @@ open_system_file (const char *relative_path)
/* system dir path is never longer. */ /* system dir path is never longer. */
char win32_name[MAX_PATH]; char win32_name[MAX_PATH];
user_shared->warned_msdos = true;
sys_wcstombs (win32_name, MAX_PATH, windows_system_directory); sys_wcstombs (win32_name, MAX_PATH, windows_system_directory);
strcat (win32_name, "drivers\\etc\\"); strcat (win32_name, "drivers\\etc\\");
strcat (win32_name, relative_path); strcat (win32_name, relative_path);