NetBSD-Bugs archive

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

Re: PR/42879 CVS commit: src



The following reply was made to PR lib/42879; it has been noted by GNATS.

From: yamt%mwd.biglobe.ne.jp@localhost (YAMAMOTO Takashi)
To: tshiozak%bsdclub.org@localhost, gnats-bugs%NetBSD.org@localhost
Cc: lib-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, 
netbsd-bugs%netbsd.org@localhost,
        yamt%NetBSD.org@localhost
Subject: Re: PR/42879 CVS commit: src
Date: Tue,  8 May 2012 16:25:04 +0000 (UTC)

 hi,
 
 >  > 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.
 
 YAMAMOTO Takashi
 


Home | Main Index | Thread Index | Old Index