Rob Landley
|
127cff3880
Work around a posix violation in the croups filesystem that LTP requires.
|
3 years ago |
Rob Landley
|
664c417af5
Add lots of "static" annotations, make a couple things use FLAG() macros, etc.
|
3 years ago |
Rob Landley
|
0b18e14e80
Three trivial code cleanups and a comment tweak.
|
3 years ago |
Rob Landley
|
85e7f1671c
Nitpicky cleanup.
|
3 years ago |
Elliott Hughes
|
6a5b8bf6cb
dirtree_path: always honor size request.
|
3 years ago |
Rob Landley
|
b61876564c
Fix bug introduced last commit: the if (name) else case needs to zero it.
|
3 years ago |
Rob Landley
|
67bd0be1a4
toysh: more variable/wildcard plumbing and tests.
|
3 years ago |
Rob Landley
|
0f2658c806
The non-recursive dirtree_path wasn't stripping a trailing / from initial path.
|
3 years ago |
Rob Landley
|
07c316a2bb
Return empty string for dirtree_path() of "" (instead of NULL).
|
3 years ago |
Rob Landley
|
424632aaa3
Non-recursive dirtree_path() needs to return start of allocation
|
3 years ago |
Rob Landley
|
0d73d98537
Teach dirtree that top level "" node is "." but not show in dirtree_path().
|
3 years ago |
Elliott Hughes
|
08b5330e2b
dirtree.c: avoid spurious EINVAL warnings.
|
4 years ago |
Rob Landley
|
0bee51bc51
Elliott pointed out a codepath that could use uninitialized data.
|
4 years ago |
Rob Landley
|
0b2cfcb8fd
Let "find -L -type -l" find dangling symlinks.
|
4 years ago |
Rob Landley
|
c26870dab3
Try to make ls failure more graceful. Print ? ? ? entries instead of error msg.
|
4 years ago |
Elliott Hughes
|
99cfd03d85
find: fix dangling symlink behavior.
|
4 years ago |
Rob Landley
|
66050d1a02
The O_PATH breaks stuff, have to work around Android's selinux rules for /
|
5 years ago |
Rob Landley
|
dddd1a13a9
Add DIRTREE_STATLESS to return entries we couldn't stat().
|
5 years ago |
Rob Landley
|
6998ba2359
Dirtree shouldn't put a "No" in front of filename for "permission denied".
|
5 years ago |
Rob Landley
|
a975952d88
Add DIRTREE_PROC to skip non-numeric entries and make ps/top etc use it.
|
7 years ago |
Rob Landley
|
382057f588
Have dirtree_notdotdot() pass through !node->parent so . and .. on the command
|
7 years ago |
Rob Landley
|
bb77dde5dd
Have dirtree_recurse() take the new dirfd as an argument.
|
8 years ago |
Rob Landley
|
8d95074b7d
Cleanup pass on the dirtree infrastructure, in preparation for making rm -r
|
8 years ago |
Rob Landley
|
d336af4180
Rename dirtree->data to dirfd, and don't store symlink length in it.
|
8 years ago |
Rob Landley
|
aab9164df3
Add DIRTREE_SHUTUP to disable dirtree warnings if file vanishes out from
|
9 years ago |
Rob Landley
|
29d30be311
Respond to two static analysis issues in dirtree_path() reported by Ashwini Sharma.
|
9 years ago |
Rob Landley
|
749c523240
Actually set the again flag when calling the dirtree comeagain callback.
|
10 years ago |
Rob Landley
|
fec3fd1f8a
Move DIRTREE_COMEAGAIN second callback up to when the filehandle is still open, and add dir->again variable to distinguish second call instead of checking for -1 filehandle.
|
10 years ago |
Rob Landley
|
ccb73f8bf9
Default xcreate/xopen to O_CLOEXEC. (Pass O_CLOEXEC in the flags to switch it back off.)
|
10 years ago |
Rob Landley
|
280bb59425
Fix memory leak in error path.
|
10 years ago |