diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-10-03 19:17:32 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-10-03 19:17:32 +0000 |
commit | 7303fe65db58e3b9f040a92ae0d9a47bd6447445 (patch) | |
tree | 2bb7e411da012cfcc9f8cacdd3a631effb9e94a7 /lkm | |
parent | e11b72aa88ac493b18bffc222b22540f38be8b4b (diff) |
Fix multiple problems in the FTS_NOCHDIR case (mycroft@netbsd.org):
* There was an off-by-one error that caused the addition of a NUL or slash
in fts_build() to overwrite other memory.
* After fts_palloc(), we need to reset `cp' so that it points to the new
path name buffer; otherwise the addition of the file name before calling
fts_stat() could lose. Also, fix stupidity in the fts_palloc() interface.
We don't want N bytes more than the current buffer size; we want N bytes
more than the current length. Just pass in the new size, since we can't
figure it out easily here.
fts_padjust() was doing more work than it needed to. Based on changes
from mycroft@netbsd.org.
Check for fts_pathlen oflow in two places. Done before I saw the NetBSD
change (and last I checked they only did one of the checks). In the
case of wrap, return ENAMETOOLONG.
Diffstat (limited to 'lkm')
0 files changed, 0 insertions, 0 deletions