a19faf8bb7
find: -context support for SELinux (KaiGai Kohei <kaigai@kaigai.gr.jp>)
...
find: make it a bit smaller
function old new delta
.rodata 129018 129050 +32
parse_params 1509 1346 -163
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 32/-163) Total: -131 bytes
2007-06-19 22:22:57 +00:00
53a0e97196
find: make -size match GNU find
2007-06-16 00:30:52 +00:00
b941129ccb
find: add conditional support for -maxdepth and -regex
...
(needed for Linux 2.6.22-rc4 build)
-maxdepth:
# size busybox_old busybox_unstripped
text data bss dec hex filename
675622 2792 15728 694142 a977e busybox_old
675770 2792 15728 694290 a9812 busybox_unstripped
-regex:
# size busybox_old busybox_unstripped
text data bss dec hex filename
675770 2792 15728 694290 a9812 busybox_old
675894 2792 15728 694414 a988e busybox_unstripped
2007-06-15 23:43:11 +00:00
b6adbf1be2
usage.c: remove reference to busybox.h
...
*: s/include "busybox.h"/include "libbb.h"
2007-05-26 19:00:18 +00:00
62f0479cf1
find: add support for -delete, -path (by Natanael Copa)
2007-04-13 10:00:12 +00:00
99912ca733
audit small applets and mark some of them as NOFORK.
...
Put big scary warnings in relevant places.
2007-04-10 15:43:37 +00:00
cd7001f705
factor out NOFORK/NOEXEC code from find. Use it for xargs too.
2007-04-09 21:32:30 +00:00
7e754f12d3
Implement first instance of NOFORK applet - echo
...
find: use NOFORK/NOEXEC; small -exec buglet also eliminated
vfork_daemon_rexec: honor PREFER_APPLETS
echo: small size improvements
find -exec echo {} \; with PREFER_APPLETS=y runs 4 times faster
2007-04-09 13:04:50 +00:00
b04b4357ff
find: fix -prune more. Add big comment about it.
2007-04-08 11:10:43 +00:00
bbd695d801
find: fix handling of -prune
...
recursive_actions: uppercase flag constants
2007-04-08 10:52:28 +00:00
6d79dd66cb
- size and prune were mixed up
2007-04-05 09:40:12 +00:00
7d6c9296e7
find: missed 'ststic' on const data
2007-04-05 00:35:43 +00:00
56fce00fc7
find: un-DESKTOPize (Kai Schwenzfeier <niteblade@gmx.net>)
...
find: -group, -depth (Natanael Copa <natanael.copa@gmail.com >)
find: make constant array static, declare PARM_xx constants with enum
2007-04-04 23:41:35 +00:00
a87ed2c716
- use index_in_str_array also for find_main
...
text data bss dec hex filename
2605 1 12 2618 a3a find.o.r18274
2602 1 12 2615 a37 find.o.r18275
2007-03-29 13:56:49 +00:00
307d27df4f
- remove bloated switch statement.
...
text data bss dec hex filename
2706 1 12 2719 a9f find.o.r18273
2605 1 12 2618 a3a find.o.r18274
2007-03-29 13:56:02 +00:00
557b458767
- implement a TODO: Use index_in_str_array in parse_params
...
text data bss dec hex filename
2771 1 12 2784 ae0 find.o.r18272
2749 1 12 2762 aca find.o.-try-switch
2706 1 12 2719 a9f find.o.r18273
2007-03-29 13:55:17 +00:00
32773aca55
- Purely cosmetic type fiddling
2007-03-29 13:54:17 +00:00
3e816c1252
- fold recurse, depthFirst and dereference params into one param flags.
...
Minor size improvement (-16b for size, -24b according to bloat-o-meter).
2007-03-29 10:30:50 +00:00
b292264bfd
find: fix -not support
2007-02-06 17:38:29 +00:00
cf787cf3a5
find: support for !
2007-02-04 17:11:25 +00:00
10b7996c1b
- strip 12 bytes off by using a smaller type for need_print.
...
- add TODO to switch this applet to index_in_str_array()
2007-02-04 16:09:04 +00:00
06af216528
suppress warnings about easch <applet>_main() having
...
no preceding prototype
2007-02-03 17:28:39 +00:00
4c97863109
assorted fixes for bugs found with randomconfig
2007-02-03 03:31:13 +00:00
a100707c04
find -user support by Natanael Copa <natanael.copa@gmail.com>
2007-02-02 01:17:52 +00:00
ab2aea4447
preparatory patch for -Wwrite-strings #4
2007-01-29 22:51:58 +00:00
434ad5456b
fix warning in find.c
2007-01-27 13:45:17 +00:00
fc7f92253a
find: fix -mtime, -mmin, -perm (+ add symbolic perm handling)
...
chmod: better name for a variable
2007-01-26 23:00:05 +00:00
769d1e05e6
fix warning from needlessly-global functions
2007-01-22 23:04:27 +00:00
c9d34da375
find: fix misplaced #else (fix by Harald Kuthe <trhoudini@hotmail.com>)
2007-01-03 03:15:58 +00:00
666da5e2c6
merge post-1.3.0 fixes
2006-12-26 18:17:42 +00:00
9ac9e55e3c
sum: 40% size reduction (-300 bytes)
...
find: one_char -> LONE_CHAR
2006-12-23 15:58:11 +00:00
8f6c79240d
find: fix spurious -exec error messages
...
(bug reported by Bernhard Fischer <rep.nop@aon.at >)
2006-12-23 00:49:10 +00:00
5fa7148761
build system: add "release" target
...
find: support -size N (needed for above)
2006-12-12 22:31:15 +00:00
9225854144
mostly style fixes
2006-11-01 10:25:35 +00:00
31c65f2456
find: -type T was actually meaning ! -type T!
...
With this fix, "make mrproper" works correctly
2006-10-31 23:39:37 +00:00
5f18e7ca33
find: implement -prune. "make clean" now works! :)
2006-10-31 03:21:02 +00:00
a3b4fed8b3
find: fix implicit -print (sometime differed from standard)
2006-10-31 03:20:13 +00:00
6191a7a007
find: implement ( )
2006-10-30 02:10:47 +00:00
5d499e1600
find: a lot more compliant to 'standard' find
...
(we were not respecting order of actions!).
Add -o and -a handling.
2006-10-29 19:07:01 +00:00
e2fb719ba3
find: small improvement
2006-10-29 19:03:56 +00:00
df0553bbd2
find: fix -exec to work like stock find does.
2006-10-29 00:21:47 +00:00
8c35d65c43
recursive_action: add depth param
...
chmod: match coreutils versus following links
2006-10-27 23:42:25 +00:00
3a6755f56f
grep: add support for -r
2006-10-14 14:24:30 +00:00
1385899416
attempt to regularize atoi mess.
2006-10-08 12:49:22 +00:00
e9a7a6212b
Change license statements (and clean up headers) on some of the files that
...
Erik or I are primary copyright holders on.
2006-09-22 02:52:41 +00:00
d921b2ecc0
Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate
...
things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only
had one user), clean up lots of #includes... General cleanup pass. What I've
been doing for the last couple days.
And it conflicts! I've removed httpd.c from this checkin due to somebody else
touching that file. It builds for me. I have to catch a bus. (Now you know
why I'm looking forward to Mercurial.)
2006-08-03 15:41:12 +00:00
19008b8373
- reuse strings and messages. Saves about 600B
2006-06-07 20:17:41 +00:00
e15d7573a1
- move #include busybox.h to the very top so we pull in the config
...
and eventual platform specific includes in early.
2006-06-02 20:56:16 +00:00
d7384296f6
implement -print0 for find
2006-05-12 14:47:20 +00:00
8416a2d558
prevent find from ever descending into an xdev'ed directory.
2006-03-27 16:42:33 +00:00