"Vladimir N. Oleynik"
8aa9e57149
support 64 arith. Close bug 136
2006-01-25 13:56:03 +00:00
Tim Riker
c1ef7bdd8d
just whitespace
2006-01-25 00:08:53 +00:00
Bernhard Reutner-Fischer
86f5c9906b
- add platform.h.
...
- use shorter boilerplate while at it.
2006-01-22 22:55:11 +00:00
Bernhard Reutner-Fischer
96002bba67
- cleanup Config.in. Use "select CONFIG_FOO" and add the corresponding
...
"depends on CONFIG_BAR" instead of the if !CONFIG_FOO ...default y stanza.
2006-01-19 14:42:23 +00:00
Bernhard Reutner-Fischer
37dec0e9e9
- make CONFIG_MD5SUM_SIZE_VS_SPEED configurable via menuconfig.
...
- use shorter boilerplate.
2006-01-17 12:07:03 +00:00
Bernhard Reutner-Fischer
7ca61b6f33
- shared libbusybox.
...
- IMA compilation option (aka IPO, IPA,..)
Please holler if i broke something..
2006-01-15 14:04:57 +00:00
Rob Landley
fb8c4983a6
Fix bug 603: "chown :root thingy" should work now.
2006-01-09 03:45:43 +00:00
Rob Landley
251161f75c
Bug 624 wants quoted char support for printf, so you can do something like:
...
printf '%d\n' '"x"'
and have it print out 120. This is the smallest implementation I can think
of at the moment.
2006-01-06 20:28:05 +00:00
Rob Landley
f8ec1b51f3
No, we _want_ the suid and sgid bits reverted by chown, for security reasons.
...
They mean something different when the user they're switching to is different,
so if you still want suid you reset it afterwards. This is a safety feature.
2006-01-06 18:22:05 +00:00
Bernhard Reutner-Fischer
9a14bd04f8
- Stephane Billiart writes:
...
Fix the compilation of head and tail.
thanks!
2005-12-15 11:47:16 +00:00
Rob Landley
164c5c80ba
Eliminate unnecessary allocation from md5sum that was leaked without ever being used.
2005-12-15 06:51:52 +00:00
Bernhard Reutner-Fischer
5816ccb190
- wrap label GET_COUNT in #if ENABLE_FEATURE_FANCY_applet to avoid warning
...
about unused label.
2005-12-13 10:48:45 +00:00
Rob Landley
a75c180e53
Bug 310: be consistent about stat/lstat and chown/lchown to avoid accidentally
...
modifying permissions or ownership when twiddling symlinks.
2005-12-12 06:58:53 +00:00
Rob Landley
cdbae77823
printf() arguments shouldn't be passed straight from user supplied data.
...
(Security thingy.)
2005-12-12 06:49:33 +00:00
Glenn L McGrath
0bd0257fe0
Add build options to control SuS compatability, allows numeric
...
option handling to be disabled.
Defaults to enabled, so no changes in default behaviour
2005-12-11 03:09:05 +00:00
Bernhard Reutner-Fischer
d77b781c1f
- remove unused variable have_read_stdin
...
- use FLAG_WIDTH
2005-12-10 20:13:54 +00:00
Paul Fox
377bdaff3b
avoid mixed declarations, to support older compilers just a little longer.
2005-12-08 18:48:20 +00:00
Rob Landley
746cfc8bf0
Another cleanup patch that's been in my tree for a while. Again I think it's
...
originally from Bernhard Fischer...
2005-12-02 17:55:45 +00:00
Rob Landley
2f30932eca
Fix cp /dev/null filename, and a few in-passing cleanups.
2005-11-01 21:55:14 +00:00
Bernhard Reutner-Fischer
47ea7b7f96
- Matthias Wenzel writes:
...
without the fix below md5sum will always report a correct md5 on _any_
wrongly formattet input files.
- use short boilerplate and remove superfluous keyword extern.
2005-10-27 14:43:27 +00:00
Bernhard Reutner-Fischer
ab1878245c
* uniq.c: remove unneeded include and use short boilerplate.
...
* coreutils.h: remove prototype of non-existing xgetoptfile_sort_uniq
and add boilerplate.
* networking/{ipaddr,ip,iplink,iproute,iptunnel}.c: touch includes
and use short boilerplate.
* libiproute/iproute.c: rename round to avoid clashes with older
SuSE gcc and use short boilerplate.
2005-10-26 10:47:26 +00:00
"Vladimir N. Oleynik"
1f0262bcdb
another more const
2005-10-20 11:17:48 +00:00
"Vladimir N. Oleynik"
a2eec6051f
RESERVE_CONFIG_BUFFER --> bb_common_bufsiz1
2005-10-15 13:45:32 +00:00
"Vladimir N. Oleynik"
6f347ef9dc
common BUFSIZ BSS buffer, small reduce code, data and bss
2005-10-15 10:23:55 +00:00
"Vladimir N. Oleynik"
f704b27b5b
- new bb_opt_complementally syntax, use [-:?] only - 'free' chars
...
- new bb_getopt_ulflags features: check max and min args, convert first argv to options special for ar and tar applets
- use bb_default_error_retval for env applet
2005-10-14 09:56:52 +00:00
"Vladimir N. Oleynik"
6c35c7c976
usage bb_dev_null
2005-10-12 15:34:25 +00:00
"Vladimir N. Oleynik"
3ade65fc04
remove 1 CR, correct strange bb_opt_complementally, add #if 0 and XXX-comment: pleace examine this\!
2005-10-12 14:36:42 +00:00
"Vladimir N. Oleynik"
064f04e7e2
- use complementally '!' to '?' - 'ask' is best 'free' char for this.
...
- more long opt compatibility, can set flag for long opt struct now
- more logic: check opt-depend requires and global requires, special for 'id' and 'start-stop-daemon' applets.
2005-10-11 14:38:01 +00:00
Rob Landley
ae907f38f0
When lstat returns an error (such as file not found), the value of
...
st_mode is random garbage (under uClibc), leading to random triggering
of the S_ISDIR() case when the destination will be a normal file which
doesn't exist yet. I.E. checking the return value of lstat is not optional.
2005-10-09 11:16:01 +00:00
Rob Landley
f1048143ee
Rob Sullivan added character and equivalence classes to tr. I changed some
...
comments.
2005-10-08 21:21:08 +00:00
Rob Landley
45ad0e87d6
Rename CONFIG_SORT_BIG to CONFIG_FEATURE_SORT_BIG so allbareconfig can find it.
2005-10-08 17:48:25 +00:00
"Vladimir N. Oleynik"
b31cb87fdc
to bb_getopt_ulflags()
2005-10-06 15:30:17 +00:00
"Vladimir N. Oleynik"
ba248206fe
change strange depend to libbb.h, but require busybox.h
2005-10-06 15:18:09 +00:00
"Vladimir N. Oleynik"
39a841cecf
change interface to bb_xasprintf() - more perfect for me.
...
ln.c: error_msg(str)->error_msg(%s, str) - remove standart "feature" for hackers
reduce 100 bytes don't care in sum
2005-09-29 16:18:57 +00:00
Mike Frysinger
7f8797c8ee
re-order a little for alphabetical
2005-09-24 23:15:28 +00:00
Mike Frysinger
62f18e1f20
use the shorter license header
2005-09-24 07:16:29 +00:00
Mike Frysinger
0d4ee68be5
use brief license line
2005-09-24 06:01:57 +00:00
"Vladimir N. Oleynik"
1f0ac23c20
very small size reduce for nohup applet
2005-09-22 13:26:23 +00:00
Bernhard Reutner-Fischer
9d7010ca86
- add applet nohup(1)
2005-09-21 18:25:05 +00:00
Bernhard Reutner-Fischer
d5bd137a24
- rename libbb's password helpers as suggested in libbb.h
...
my_getpwnam -> bb_xgetpwnam /* dies on error */
my_getgrnam -> bb_xgetgrnam /* dies on error */
my_getgrgid -> bb_getgrgid
my_getpwuid -> bb_getpwuid
my_getug -> bb_getug
2005-09-20 21:06:17 +00:00
Manuel Novoa III
84b93f7ef1
Get rid of warnings, remove compat with older gnu uniq to truly conform to susv3, and cut size a bit.
2005-09-15 08:06:42 +00:00
Rob Landley
b7128c6236
Cleanup patch by Bernhard Fischer, removing unnecessary includes of
...
getopt.h, whitespace changes, typos, etc.
2005-09-11 01:05:30 +00:00
Mike Frysinger
db289b258d
use CONFIG_BUFFER macros like cow suggested and shrink code size some more by using less variables and more gotos ;)
2005-09-10 04:10:18 +00:00
Rob Landley
98ea849623
Patch from Dirk Clemens so df doesn't run numbers together on drives >100gig.
2005-09-10 02:59:35 +00:00
Mike Frysinger
a80b290e30
some tweaks by cow to shrink a little
2005-09-10 02:47:19 +00:00
Manuel Novoa III
415f6c9628
Rob, I don't know why you feel some unexplainable compulsion to get rid of
...
a meaningless warning. But I do expect you preserve the coding style
and variable names when all you're doing is tweaking some of my code.
I repeat... do NOT change whitespace, variable names, or coding style in
any of my code simply to conform to your coding style.
2005-09-08 06:02:49 +00:00
Rob Landley
14efdc58ce
Don't comment warnings. Don't put #warnings about warnings. _FIX_ warnings.
...
This fixes the warning, and makes the binary smaller out of sheer pique.
(Yes, since Manuel did this one it's nice tight code that took several
attempts to shrink, but I was ticked.)
Add the start of a test for uniq; this is about the first 1/3 of the
tests we need for full susv3 coverage of uniq.
2005-09-07 04:18:36 +00:00
Rob Landley
1283a150ae
Whitespace-level changes. Replace s0,s1,e0,e1 with real variable names and
...
clean up whitespace and curly brackets a bit. Resulting binary should be
identical.
2005-09-06 01:57:11 +00:00
"Vladimir N. Oleynik"
a8c23aa795
- usage fresh bb_getopt_ulflags for ls -- very size reduce.
...
- small indent corrections
- remove unecessary malloc and free
2005-09-05 15:06:57 +00:00
"Vladimir N. Oleynik"
27421a1878
1) bb_opt_complementaly -> bb_opt_complementally
...
2) better support long options
3) new flag '!' for bb_opt_complementally: produce bb_show_usage() if BB_GETOPT_ERROR internally
2005-09-05 14:46:07 +00:00