*** empty log message ***

This commit is contained in:
Corinna Vinschen 2014-01-31 19:27:26 +00:00
parent 63b1a850b3
commit 5d9070ba97
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2014-01-30 Corinna Vinschen <corinna@vinschen.de>
* dir.cc (opendir): Call set_unique_id only with valid fh.
2014-01-30 Christopher Faylor <me.cygwin2014@cgf.cx>
* fhandler.h (cltype): Add cl_buf_beg, cl_buf_end.

View File

@ -1,7 +1,7 @@
/* dir.cc: Posix directory-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.
@ -69,7 +69,7 @@ opendir (const char *name)
if (!res && fh)
delete fh;
/* Applications calling flock(2) on dirfd(fd) need this... */
if (!fh->nohandle ())
if (res && !fh->nohandle ())
fh->set_unique_id ();
return res;
}