diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2006-03-03 20:19:26 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2006-03-03 20:19:26 +0000 |
commit | ecdee6e98ab783d321b1ffe9a10d09e19e19eb6d (patch) | |
tree | 6ca1b117ac97ea951c04c3342cd314b61f6f0b6c /winsup/cygwin/dir.cc | |
parent | 961fe49069358eb66381c5e1ac56681e5cf4e5b2 (diff) | |
download | cygnal-ecdee6e98ab783d321b1ffe9a10d09e19e19eb6d.tar.gz cygnal-ecdee6e98ab783d321b1ffe9a10d09e19e19eb6d.tar.bz2 cygnal-ecdee6e98ab783d321b1ffe9a10d09e19e19eb6d.zip |
* dir.cc (opendir): Fix indentation.
* fhandler_disk_file.cc (fhandler_disk_file::opendir): Move storing
fhandler in file descriptor table to some point very late in function
to avoid double free'ing. Add comment to explain what happens.
Add label free_mounts and don't forget to delete __DIR_mounts structure
if NtOpenFile fails.
Diffstat (limited to 'winsup/cygwin/dir.cc')
-rw-r--r-- | winsup/cygwin/dir.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/dir.cc b/winsup/cygwin/dir.cc index b81b83855..c40401258 100644 --- a/winsup/cygwin/dir.cc +++ b/winsup/cygwin/dir.cc @@ -61,7 +61,7 @@ opendir (const char *name) if (!fh) res = NULL; else if (fh->exists ()) - res = fh->opendir (); + res = fh->opendir (); else { set_errno (ENOENT); |