* netdb.cc (open_system_file): Avoid MS-DOS path warning.
This commit is contained in:
parent
5250e27f71
commit
8d1bda71b4
|
@ -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>
|
||||
|
||||
* path.cc (conv_path_list): Fix a condition.
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue