aboutsummaryrefslogtreecommitdiff
path: root/sysklogd/logger.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* - move #include busybox.h to the very top so we pull in the configaldot2006-06-021-15/+2
| | | | | | | and eventual platform specific includes in early. git-svn-id: svn://busybox.net/trunk/busybox@15267 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionlandley2006-03-061-1/+1
| | | | | | | definitions. (That should only be on prototypes.) git-svn-id: svn://busybox.net/trunk/busybox@14457 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - rename libbb's password helpers as suggested in libbb.haldot2005-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 git-svn-id: svn://busybox.net/trunk/busybox@11515 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Removed the incorrect and confusing facility argument specified withpkj2005-04-061-3/+3
| | | | | | | | openlog() as the correct facility will be specified with syslog() anyway. git-svn-id: svn://busybox.net/trunk/busybox@10073 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tito writes: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 git-svn-id: svn://busybox.net/trunk/busybox@9165 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove trailing whitespace. Update copyright to include 2004.andersen2004-03-151-7/+7
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8630 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update a bunch of docs. Run a script to update my email addr.andersen2003-07-141-2/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7061 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major coreutils update.mjn32003-03-191-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6751 69ca8d6d-28ef-0310-b511-8ec308f3f277
* last_patch57 from Vladimir N. Oleynikbug12002-11-101-9/+14
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5900 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vodz' last_patch57: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 git-svn-id: svn://busybox.net/trunk/busybox@5613 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major rework of the directory structure and the entire build system.andersen2001-10-241-3/+3
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@3561 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some patches to make dietlibc work...andersen2001-07-221-10/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3134 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some adjustments, mostly from David McCullough <davidm@lineo.com> toandersen2001-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 git-svn-id: svn://busybox.net/trunk/busybox@3130 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Applied patch from Gennady Feldman to split up syslogd.c into syslogd andmarkw2001-03-121-2/+3
| | | | | | | klogd (as it should be). git-svn-id: svn://busybox.net/trunk/busybox@2048 69ca8d6d-28ef-0310-b511-8ec308f3f277
* It turns out that DODMALLOC was broken when I reorganized busybox.handersen2001-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 git-svn-id: svn://busybox.net/trunk/busybox@1864 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This patch, put together by Manuel Novoa III, is a merge of workandersen2001-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. git-svn-id: svn://busybox.net/trunk/busybox@1805 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Removed trailing \n from error_msg{,_and_die} messages.kraai2001-01-311-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1732 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix up copyright msgs. Bump version to 0.49 in preparation forandersen2001-01-271-1/+1
| | | | | | | | a release. Update the website with release details. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1697 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix header file usage -- there were many unnecessary header files included inandersen2001-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 git-svn-id: svn://busybox.net/trunk/busybox@1695 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Logger forgot to NULL terminate strings from stdin.andersen2001-01-031-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1522 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Log stdin when no message given and use getopt.kraai2001-01-021-38/+17
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1514 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from larry doolittle to make sure we don't reallocandersen2000-12-111-0/+1
| | | | | | | a pointer that was not yet malloced mem. git-svn-id: svn://busybox.net/trunk/busybox@1428 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some little cleanups from Larry Doolittleandersen2000-12-091-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1410 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Matt Kraai to make logger log all arguments.andersen2000-12-081-3/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1401 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Changed names of functions in utility.c and all affected files, to makemarkw2000-12-071-3/+3
| | | | | | | compliant with the style guide. Everybody rebuild your tags file! git-svn-id: svn://busybox.net/trunk/busybox@1398 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix by Tim Robbins <fyre@box3n.gumbynet.org> to prevent bad formatkraai2000-12-071-1/+1
| | | | | | | strings from being passed to syslog(3). git-svn-id: svn://busybox.net/trunk/busybox@1397 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove the BSD advertising clause, and replace it with a link to howandersen2000-11-141-0/+43
| | | | | | | the advertising clause has been retroactivly declared null and void. git-svn-id: svn://busybox.net/trunk/busybox@1303 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Clean up error handling and uses of TRUE/FALSE.kraai2000-10-251-14/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1237 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Renamed "internal.h" to the more sensible "busybox.h".andersen2000-09-251-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1119 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some #include updates.andersen2000-08-101-1/+0
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@946 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Extract usage information into a separate file.kraai2000-07-161-14/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@864 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More fixes for "signed vs. unsigned" warnings.proski2000-07-141-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@858 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use errorMsg rather than fprintf.kraai2000-07-141-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@848 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Updates to a number of apps to remove warnings/compile errors under libc5.andersen2000-06-191-2/+2
| | | | | | | | Tested under both libc5 and libc6 and all seems well with these fixes. -Erik git-svn-id: svn://busybox.net/trunk/busybox@660 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELPerik2000-05-121-3/+6
| | | | | | | | | | | which lets you compile out most of the "--help" output, saving up to 17k. Renamed mnc to nc. -Erik git-svn-id: svn://busybox.net/trunk/busybox@532 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Upates to include copyright 2000 to everythingerik2000-04-131-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@447 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some formatting updates (ran the code through indent)erik2000-02-081-96/+95
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@357 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Clear up some ambiguity with old style assignments.erik2000-01-291-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@348 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some busybox updates. You no longer _have_ to put a "-" in front of tarerik2000-01-231-38/+21
| | | | | | | | | | options, logger is better behaved and has a "-t" option now. init now supports the kernel chroot patch, so you can chroot to a new device and umount the old root. -Erik git-svn-id: svn://busybox.net/trunk/busybox@328 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a logger bug.erik2000-01-091-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@299 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Trivial type fix.erik2000-01-071-2/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@289 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix bugs in logger and syslogd. Add fbset.erik1999-12-161-5/+4
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@237 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Stufandersen1999-11-251-8/+18
| | | | git-svn-id: svn://busybox.net/trunk/busybox@119 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Stufandersen1999-11-251-0/+186
git-svn-id: svn://busybox.net/trunk/busybox@118 69ca8d6d-28ef-0310-b511-8ec308f3f277