git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
697feb0
)
namei-close-directory-behind-us-always-20020827
author
Derrick Brashear
<shadow@dementia.org>
Tue, 27 Aug 2002 21:46:16 +0000 (21:46 +0000)
committer
Derrick Brashear
<shadow@dementia.org>
Tue, 27 Aug 2002 21:46:16 +0000 (21:46 +0000)
more or less verbatim as suggested by kolya@mit.edu
avoid leaking directory fds if we get an error
src/vol/namei_ops.c
patch
|
blob
|
history
diff --git
a/src/vol/namei_ops.c
b/src/vol/namei_ops.c
index
e1cb1f6
..
df6371e
100644
(file)
--- a/
src/vol/namei_ops.c
+++ b/
src/vol/namei_ops.c
@@
-317,8
+317,8
@@
delTree(char *root, char *tree, int *errp)
*/
*cp = 0;
}
- if (!errno)
- closedir(ds);
+ /* if (!errno) -- closedir not implicit if we got an error */
+ closedir(ds);
}
/* finally axe the current dir */