aboutsummaryrefslogtreecommitdiff
path: root/coreutils
AgeCommit message (Collapse)Author
2006-01-06Bug 624 wants quoted char support for printf, so you can do something like:Rob Landley
printf '%d\n' '"x"' and have it print out 120. This is the smallest implementation I can think of at the moment.
2006-01-06No, we _want_ the suid and sgid bits reverted by chown, for security reasons.Rob Landley
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.
2005-12-15- Stephane Billiart writes:Bernhard Reutner-Fischer
Fix the compilation of head and tail. thanks!
2005-12-15Eliminate unnecessary allocation from md5sum that was leaked without ever ↵Rob Landley
being used.
2005-12-13- wrap label GET_COUNT in #if ENABLE_FEATURE_FANCY_applet to avoid warningBernhard Reutner-Fischer
about unused label.
2005-12-12Bug 310: be consistent about stat/lstat and chown/lchown to avoid accidentallyRob Landley
modifying permissions or ownership when twiddling symlinks.
2005-12-12printf() arguments shouldn't be passed straight from user supplied data.Rob Landley
(Security thingy.)
2005-12-11Add build options to control SuS compatability, allows numeric Glenn L McGrath
option handling to be disabled. Defaults to enabled, so no changes in default behaviour
2005-12-10- remove unused variable have_read_stdinBernhard Reutner-Fischer
- use FLAG_WIDTH
2005-12-08avoid mixed declarations, to support older compilers just a little longer.Paul Fox
2005-12-02Another cleanup patch that's been in my tree for a while. Again I think it'sRob Landley
originally from Bernhard Fischer...
2005-11-01Fix cp /dev/null filename, and a few in-passing cleanups.Rob Landley
2005-10-27- Matthias Wenzel writes:Bernhard Reutner-Fischer
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-26 * uniq.c: remove unneeded include and use short boilerplate.Bernhard Reutner-Fischer
* 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-20another more const"Vladimir N. Oleynik"
2005-10-15RESERVE_CONFIG_BUFFER --> bb_common_bufsiz1"Vladimir N. Oleynik"
2005-10-15common BUFSIZ BSS buffer, small reduce code, data and bss"Vladimir N. Oleynik"
2005-10-14- new bb_opt_complementally syntax, use [-:?] only - 'free' chars"Vladimir N. Oleynik"
- 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-12usage bb_dev_null"Vladimir N. Oleynik"
2005-10-12remove 1 CR, correct strange bb_opt_complementally, add #if 0 and ↵"Vladimir N. Oleynik"
XXX-comment: pleace examine this\!
2005-10-11- use complementally '!' to '?' - 'ask' is best 'free' char for this."Vladimir N. Oleynik"
- 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-09When lstat returns an error (such as file not found), the value ofRob Landley
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-08Rob Sullivan added character and equivalence classes to tr. I changed someRob Landley
comments.
2005-10-08Rename CONFIG_SORT_BIG to CONFIG_FEATURE_SORT_BIG so allbareconfig can find it.Rob Landley
2005-10-06to bb_getopt_ulflags()"Vladimir N. Oleynik"
2005-10-06change strange depend to libbb.h, but require busybox.h"Vladimir N. Oleynik"
2005-09-29change interface to bb_xasprintf() - more perfect for me."Vladimir N. Oleynik"
ln.c: error_msg(str)->error_msg(%s, str) - remove standart "feature" for hackers reduce 100 bytes don't care in sum
2005-09-24re-order a little for alphabeticalMike Frysinger
2005-09-24use the shorter license headerMike Frysinger
2005-09-24use brief license lineMike Frysinger
2005-09-22very small size reduce for nohup applet"Vladimir N. Oleynik"
2005-09-21- add applet nohup(1)Bernhard Reutner-Fischer
2005-09-20- rename libbb's password helpers as suggested in libbb.hBernhard Reutner-Fischer
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-15Get rid of warnings, remove compat with older gnu uniq to truly conform to ↵Manuel Novoa III
susv3, and cut size a bit.
2005-09-11Cleanup patch by Bernhard Fischer, removing unnecessary includes ofRob Landley
getopt.h, whitespace changes, typos, etc.
2005-09-10use CONFIG_BUFFER macros like cow suggested and shrink code size some more ↵Mike Frysinger
by using less variables and more gotos ;)
2005-09-10Patch from Dirk Clemens so df doesn't run numbers together on drives >100gig.Rob Landley
2005-09-10some tweaks by cow to shrink a littleMike Frysinger
2005-09-08Rob, I don't know why you feel some unexplainable compulsion to get rid ofManuel Novoa III
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-07Don't comment warnings. Don't put #warnings about warnings. _FIX_ warnings.Rob Landley
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-06Whitespace-level changes. Replace s0,s1,e0,e1 with real variable names andRob Landley
clean up whitespace and curly brackets a bit. Resulting binary should be identical.
2005-09-05- usage fresh bb_getopt_ulflags for ls -- very size reduce."Vladimir N. Oleynik"
- small indent corrections - remove unecessary malloc and free
2005-09-051) bb_opt_complementaly -> bb_opt_complementally"Vladimir N. Oleynik"
2) better support long options 3) new flag '!' for bb_opt_complementally: produce bb_show_usage() if BB_GETOPT_ERROR internally
2005-09-01Bernhard Fischer trimmed down dos2unix a bit.Rob Landley
2005-08-13Very minor tweak to tail.Rob Landley
2005-08-10Major rewrite of mount, umount, losetup. Untangled lots of code, shrunkRob Landley
things down a bit, fixed a number of funky corner cases, added support for several new features (things like mount --move, mount --bind, lazy unounts, automatic detection of loop mounts, and so on). Probably broke several other things, but it's fixable. (Bang on it, tell me what doesn't work for you...) Note: you no longer need to say "-o loop". It does that for you when necessary. Still need to add "user mount" support, which involves making mount suid. Not too hard to do under the new infrastructure, just haven't done it yet... The previous code had the following notes, that belong in the version control comments: - * 3/21/1999 Charles P. Wright <cpwright@cpwright.com> - * searches through fstab when -a is passed - * will try mounting stuff with all fses when passed -t auto - * - * 1999-04-17 Dave Cinege...Rewrote -t auto. Fixed ro mtab. - * - * 1999-10-07 Erik Andersen <andersen@codepoet.org>. - * Rewrite of a lot of code. Removed mtab usage (I plan on - * putting it back as a compile-time option some time), - * major adjustments to option parsing, and some serious - * dieting all around. - * - * 1999-11-06 mtab support is back - andersee - * - * 2000-01-12 Ben Collins <bcollins@debian.org>, Borrowed utils-linux's - * mount to add loop support. - * - * 2000-04-30 Dave Cinege <dcinege@psychosis.com> - * Rewrote fstab while loop and lower mount section. Can now do - * single mounts from fstab. Can override fstab options for single - * mount. Common mount_one call for single mounts and 'all'. Fixed - * mtab updating and stale entries. Removed 'remount' default. - *
2005-08-09implemented a builtin echo command in ash. moved the guts of thePaul Fox
echo applet into libbb, and now call bb_echo() from both echo.c and ash.c
2005-08-01commiting patch from bug 71:Paul Fox
0000071: patch: implement "--color" option for ls coloring control
2005-07-30tell people to ignore the dups/e0 warningsMike Frysinger
2005-07-27use toplevel ARFLAGS and update default ARFLAGS to be quietMike Frysinger