summaryrefslogtreecommitdiff
path: root/sysklogd/logger.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* apply accumulated post 1.7.2 patches; bump version to 1.7.31_7_3Denis Vlasenko2007-11-031-3/+3
|
* don't pass argc in getopt32, it's superfluousDenis Vlasenko2007-08-181-1/+1
| | | | | | | | (add/remove: 0/0 grow/shrink: 12/131 up/down: 91/-727) Total: -636 bytes text data bss dec hex filename 773469 1058 11092 785619 bfcd3 busybox_old 772644 1058 11092 784794 bf99a busybox_unstripped
* bb_getpwuid, bb_getgrgid: change order of arguments to more intuitive one;Denis Vlasenko2007-07-271-1/+1
| | | | | comment thoroughly when they die and when they dont.
* Audit bb_common_bufsiz usage, add script which looks for misuse.Denis Vlasenko2007-06-041-4/+5
| | | | | | tr: stop using globals needlessly. code: -103 bytes
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* undo RESERVE_CONFIG_BUFFER change. aldot, small on-stack char[N] objectsDenis Vlasenko2007-01-121-9/+7
| | | | are perfectly okay, don't convert them to RESERVE_CONFIG_BUFFERs.
* - shrink by 26 bytes or soBernhard Reutner-Fischer2007-01-091-15/+21
|
* syslogd: start using bb_common_bufsiz1 instead of stack/mallocDenis Vlasenko2007-01-041-35/+19
| | | | | logger: optimize, also use bb_common_bufsiz1 (~40 bytes) tested to eat arbitrarily-sized input at high speed - ok
* attempt to regularize atoi mess.Denis Vlasenko2006-10-081-6/+3
|
* getopt_ulflags -> getopt32.Denis Vlasenko2006-10-031-2/+2
| | | | | | | | It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit.
* logger: getopt_ulflags'isationDenis Vlasenko2006-09-221-16/+7
|
* using [xa]sprintf for string concatenation is neat and savesDenis Vlasenko2006-09-091-1/+1
| | | | | ~100 bytes according to bloatcheck. Also this fixes bug in rpm
* - move #include busybox.h to the very top so we pull in the configBernhard Reutner-Fischer2006-06-021-15/+2
| | | | and eventual platform specific includes in early.
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley2006-03-061-1/+1
| | | | definitions. (That should only be on prototypes.)
* - rename libbb's password helpers as suggested in libbb.hBernhard Reutner-Fischer2005-09-201-1/+1
| | | | | | | | 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
* Removed the incorrect and confusing facility argument specified withPeter Kjellerstedt2005-04-061-3/+3
| | | | | openlog() as the correct facility will be specified with syslog() anyway.
* Tito writes:Eric Andersen2004-08-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hi, I've spent the half night staring at the devilish my_getpwuid and my_getgrgid functions trying to find out a way to avoid actual and future potential buffer overflow problems without breaking existing code. Finally I've found a not intrusive way to do this that surely doesn't break existing code and fixes a couple of problems too. The attached patch: 1) changes the behaviour of my_getpwuid and my_getgrgid to avoid potetntial buffer overflows 2) fixes all occurences of this function calls in tar.c , id.c , ls.c, whoami.c, logger.c, libbb.h. 3) The behaviour of tar, ls and logger is unchanged. 4) The behavior of ps with somewhat longer usernames messing up output is fixed. 5) The only bigger change was the increasing of size of the buffers in id.c to avoid false negatives (unknown user: xxxxxx) with usernames longer than 8 chars. The value i used ( 32 chars ) was taken from the tar header ( see gname and uname). Maybe this buffers can be reduced a bit ( to 16 or whatever ), this is up to you. 6) The increase of size of the binary is not so dramatic: size busybox text data bss dec hex filename 239568 2300 36816 278684 4409c busybox size busybox_fixed text data bss dec hex filename 239616 2300 36816 278732 440cc busybox 7) The behaviour of whoami changed: actually it prints out an username cut down to the size of the buffer. This could be fixed by increasing the size of the buffer as in id.c or avoid the use of my_getpwuid and use getpwuid directly instead. Maybe this colud be also remain unchanged...... Please apply if you think it is ok to do so. The diff applies on today's cvs tarball (2004-08-25). Thanks in advance, Ciao, Tito
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-7/+7
|
* Update a bunch of docs. Run a script to update my email addr.Eric Andersen2003-07-141-2/+1
|
* Major coreutils update.Manuel Novoa III2003-03-191-3/+3
|
* last_patch57 from Vladimir N. OleynikGlenn L McGrath2002-11-101-9/+14
|
* Vodz' last_patch57:Eric Andersen2002-09-301-3/+3
| | | | | | | | | | | | | | | Hi, Erik. my_getpw(uid/gid) and applets used it have problem: if username for uid not found, applets can`t detect it (but code pessent). Also "%8ld " format is bad: spaces not required (applets have self format or spec format (tar applet) and overflow for "id" applet...) This problem also pressent in stable version. Patch for unstable in attach. --w vodz
* Major rework of the directory structure and the entire build system.Eric Andersen2001-10-241-3/+3
| | | | -Erik
* Some patches to make dietlibc work...Eric Andersen2001-07-221-10/+11
|
* Some adjustments, mostly from David McCullough <davidm@lineo.com> toEric Andersen2001-07-191-11/+15
| | | | | | | make busybox be more uClinux friendly. I also adjusted Config.h for uClinux so it will automagically disable apps the arn't going to work without fork() and such. -Erik
* Applied patch from Gennady Feldman to split up syslogd.c into syslogd andMark Whitley2001-03-121-2/+3
| | | | klogd (as it should be).
* It turns out that DODMALLOC was broken when I reorganized busybox.hEric Andersen2001-02-201-1/+2
| | | | | | header file usage before the 0.49 release. To fix it, I had to move the '#include "busybox.h"' to the end of the list of #include files. -Erik
* This patch, put together by Manuel Novoa III, is a merge of workEric Andersen2001-02-141-1/+1
| | | | | | done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed.
* Removed trailing \n from error_msg{,_and_die} messages.Matt Kraai2001-01-311-2/+2
|
* Fix up copyright msgs. Bump version to 0.49 in preparation for0_49Eric Andersen2001-01-271-1/+1
| | | | | a release. Update the website with release details. -Erik
* Fix header file usage -- there were many unnecessary header files included inEric Andersen2001-01-271-0/+2
| | | | | | | busybox.h which slowed compiles. I left only what was needed and then fixed up all the apps to include their own header files. I also fixed naming for pwd.h and grp.h functions. Tested to compile and run with libc5, glibc, and uClibc. -Erik
* Logger forgot to NULL terminate strings from stdin.Eric Andersen2001-01-031-1/+1
|
* Log stdin when no message given and use getopt.Matt Kraai2001-01-021-38/+17
|
* Patch from larry doolittle to make sure we don't reallocEric Andersen2000-12-111-0/+1
| | | | a pointer that was not yet malloced mem.
* Some little cleanups from Larry DoolittleEric Andersen2000-12-091-1/+1
|
* Patch from Matt Kraai to make logger log all arguments.Eric Andersen2000-12-081-3/+12
|
* Changed names of functions in utility.c and all affected files, to makeMark Whitley2000-12-071-3/+3
| | | | compliant with the style guide. Everybody rebuild your tags file!
* Fix by Tim Robbins <fyre@box3n.gumbynet.org> to prevent bad formatMatt Kraai2000-12-071-1/+1
| | | | strings from being passed to syslog(3).
* Remove the BSD advertising clause, and replace it with a link to howEric Andersen2000-11-141-0/+43
| | | | the advertising clause has been retroactivly declared null and void.
* Clean up error handling and uses of TRUE/FALSE.Matt Kraai2000-10-251-14/+8
|
* Renamed "internal.h" to the more sensible "busybox.h".Eric Andersen2000-09-251-1/+1
| | | | -Erik
* Some #include updates.Eric Andersen2000-08-101-1/+0
| | | | -Erik
* Extract usage information into a separate file.Matt Kraai2000-07-161-14/+0
|
* More fixes for "signed vs. unsigned" warnings.Pavel Roskin2000-07-141-1/+2
|
* Use errorMsg rather than fprintf.Matt Kraai2000-07-141-3/+3
|
* Updates to a number of apps to remove warnings/compile errors under libc5.Eric Andersen2000-06-191-2/+2
| | | | | Tested under both libc5 and libc6 and all seems well with these fixes. -Erik
* Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELPErik Andersen2000-05-121-3/+6
| | | | | | | | which lets you compile out most of the "--help" output, saving up to 17k. Renamed mnc to nc. -Erik
* Upates to include copyright 2000 to everythingErik Andersen2000-04-131-1/+1
| | | | -Erik
* Some formatting updates (ran the code through indent)Erik Andersen2000-02-081-96/+95
| | | | -Erik