NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: PR/42879 CVS commit: src


>  > the problem is that, the compat version of opendir is calling the newer
>  > getdents via _initdir, right?
>  Yes.
>  > does rewinddir have the same problem as well?
>  Certainly.  I didn't notice it.

unfortunately it's too late to version rewinddir.

how about:

        1. version _initdir as your patch.
        2. DIR: add a new member, dd_initdir.
        3. opendir: dirp->dd_initdir = _initdir
        4. rewinddir: use dirp->dd_initdir instead of _initdir.


Home | Main Index | Thread Index | Old Index