Need to close the cwd file descriptor
authorSteve Muir <smuir@cs.princeton.edu>
Mon, 7 Nov 2005 20:11:50 +0000 (20:11 +0000)
committerSteve Muir <smuir@cs.princeton.edu>
Mon, 7 Nov 2005 20:11:50 +0000 (20:11 +0000)
python/vduimpl.c

index fb219ff..2191826 100644 (file)
@@ -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);