summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/shared.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2014-02-06 20:38:35 +0000
committerCorinna Vinschen <corinna@vinschen.de>2014-02-06 20:38:35 +0000
commitabbe1f5320881ec7da114a4e0b6d17045d6b5500 (patch)
tree19a806f7d195cc35873a287f58ed285f2492ed20 /winsup/cygwin/shared.cc
parent46913a8290408f9321791c0ee00b786c4f767b75 (diff)
downloadcygnal-abbe1f5320881ec7da114a4e0b6d17045d6b5500.tar.gz
cygnal-abbe1f5320881ec7da114a4e0b6d17045d6b5500.tar.bz2
cygnal-abbe1f5320881ec7da114a4e0b6d17045d6b5500.zip
* 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.
Diffstat (limited to 'winsup/cygwin/shared.cc')
-rw-r--r--winsup/cygwin/shared.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/shared.cc b/winsup/cygwin/shared.cc
index b1b9e6a49..2f5a45376 100644
--- a/winsup/cygwin/shared.cc
+++ b/winsup/cygwin/shared.cc
@@ -1,7 +1,7 @@
/* shared.cc: shared data area support.
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.
@@ -230,7 +230,7 @@ user_info::initialize ()
spinlock sversion (version, CURR_USER_MAGIC);
if (!sversion)
{
- cb = sizeof (*user_shared);
+ cb = sizeof (*user_shared);
cygpsid sid (cygheap->user.sid ());
struct passwd *pw = internal_getpwsid (sid);
/* Correct the user name with what's defined in /etc/passwd before