diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2014-01-31 23:27:26 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2014-01-31 23:27:26 +0400 |
commit | 5d9070ba978215876cba3e8e93d9182da416abdf (patch) | |
tree | 9f21dec5dacfeba21c5c355591063bd8d3818f1c /winsup/cygwin/dir.cc | |
parent | 63b1a850b3347230b1660f3b3f02f05b8c535cd7 (diff) |
*** empty log message ***
Diffstat (limited to 'winsup/cygwin/dir.cc')
-rw-r--r-- | winsup/cygwin/dir.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/dir.cc b/winsup/cygwin/dir.cc index dc6e2a740..c1f8a897b 100644 --- a/winsup/cygwin/dir.cc +++ b/winsup/cygwin/dir.cc @@ -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; } |