From: Steve Muir Date: Mon, 7 Nov 2005 20:11:50 +0000 (+0000) Subject: Need to close the cwd file descriptor X-Git-Tag: after-util-vserver-0_30_208-revert~73 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=1c2d10d358c0c6d3327582a9565cf60a1f2e2a82;p=util-vserver.git Need to close the cwd file descriptor --- diff --git a/python/vduimpl.c b/python/vduimpl.c index fb219ff..2191826 100644 --- 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);