git://git.onelab.eu
/
util-vserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d967219
)
Need to close the cwd file descriptor
author
Steve Muir
<smuir@cs.princeton.edu>
Mon, 7 Nov 2005 20:11:50 +0000
(20:11 +0000)
committer
Steve Muir
<smuir@cs.princeton.edu>
Mon, 7 Nov 2005 20:11:50 +0000
(20:11 +0000)
python/vduimpl.c
patch
|
blob
|
history
diff --git
a/python/vduimpl.c
b/python/vduimpl.c
index
fb219ff
..
2191826
100644
(file)
--- a/
python/vduimpl.c
+++ b/
python/vduimpl.c
@@
-549,6
+549,7
@@
do_vdu(PyObject *self, PyObject *args)
cwd_fd = open(".", O_RDONLY);
res = vdu_onedir(&tbl, &s, path);
fchdir(cwd_fd);
+ close(cwd_fd);
/* deallocate whatever has been added to tbl */
Dispose(&tbl);