From abbe1f5320881ec7da114a4e0b6d17045d6b5500 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 6 Feb 2014 20:38:35 +0000 Subject: * fhandler_disk_file.cc (fhandler_disk_file::fchown): Fix typo in comment. * mount.cc (mount_info::from_fstab): Use tmp_pathbuf rather than stack for big local buffer. * net.cc (cygwin_gethostname): Call GetComputerNameExA rather than GetComputerNameA if gethostname failed. * shared.cc (user_info::initialize): Fix formatting. * include/sys/file.h: Define flock and accompanying macros if not already defined in sys/_default_fcntl.h. --- winsup/cygwin/net.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/net.cc') diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index 54b556a47..480570033 100644 --- a/winsup/cygwin/net.cc +++ b/winsup/cygwin/net.cc @@ -1,7 +1,7 @@ /* net.cc: network-related routines. Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, - 2007, 2008, 2009, 2010, 2011, 2012, 2013 Red Hat, Inc. + 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Red Hat, Inc. This file is part of Cygwin. @@ -1007,7 +1007,7 @@ cygwin_gethostname (char *name, size_t len) { DWORD local_len = len; - if (!GetComputerNameA (name, &local_len)) + if (!GetComputerNameExA (ComputerNameDnsFullyQualified, name, &local_len)) { set_winsock_errno (); return -1; -- cgit v1.2.3