Age | Commit message (Collapse) | Author |
|
|
|
rescinded 22 July 1999. Proofed by myself and Theo.
|
|
|
|
|
|
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
|
|
a few fields by hand; Closes PR 2033
|
|
prevents a duplicate free() in fts_close(). From karls@inet.no
with some other, similar cases added.
|
|
<bde@zeta.org.au>. Instead of fixing these inline I've modified
my fts_safe_changedir() function so it can be used in this case
too. Thanks also to Kris Kennaway <kris@obsecurity.org>.
|
|
we should be. This is similar to the old fts bug but happens when
popping out of directories, as opposed to descending into them.
Patch based on one by Kris Kennaway <kris@obsecurity.org>.
Issue reported by Nick Cleaton <nick@cleaton.net>
|
|
things like rm can't remove files with ridiculously long path names
that were created by some script kiddie trying in vain to exploit
something. Previously, the length was effectively constrained to
USHRT_MAX due to one of the internal structs. Also, nuke FTS_CHDIRROOT
since it never worked correctly and hasn't been documented for a
long time.
|
|
|
|
|
|
|
|
* 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.
|
|
the trailing '/' would not be chopped; pho@freebsd.org
|
|
2) Only adjust pointers based on ftp_path, not fts_name.
3) Adjust the entries in the file list, as well as the trees, if
needed.
Loosely based on a patch from Stas Kisel <stas@SONET.CRIMEA.UA>
|
|
|
|
|
|
|
|
|
|
|
|
termination. Now we do.
|
|
the form of an ls(1) bug and dm@reeducation-labor.lcs.mit.edu in
the form of a cp(1) bug.
|
|
Adds a new flag to fts(3).
|
|
as pointed out by Bruce Evans.
|
|
- Add args for compar() function decl.
- Fix it so fts_* never adds a / to a path name when there is
already a trailing /. Fixes NetBSD PR 1495.
|
|
|
|
can't cd to the target dir. Fixes rogue pointer problem
introduced with safe chdir changes.
|
|
|
|
|
|
|
|
|
|
Make sure everything uses {SYS,}LIBC_SCCS properly
|
|
|