aboutsummaryrefslogtreecommitdiff
path: root/sysklogd (follow)
Commit message (Collapse)AuthorAgeFilesLines
* - move #include busybox.h to the very top so we pull in the configaldot2006-06-023-19/+4
| | | | | | | and eventual platform specific includes in early. git-svn-id: svn://busybox.net/trunk/busybox@15267 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - shrink logread a bit.aldot2006-06-011-22/+6
| | | | | | | | | text data bss dec hex filename 862 26 188 1076 434 logread.o.orig 825 26 188 1039 40f logread.o git-svn-id: svn://busybox.net/trunk/busybox@15260 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - shrink klogd a bitaldot2006-05-311-35/+37
| | | | | | | | | text data bss dec hex filename 569 0 0 569 239 sysklogd/klogd.o.orig 537 0 0 537 219 sysklogd/klogd.o git-svn-id: svn://busybox.net/trunk/busybox@15245 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - s/defined(__uClinux__)/BB_NOMMU/aldot2006-05-312-6/+6
| | | | | | | | | | This needs a second pass to: + add bb_daemon(unsigned char no_chdir, unsigned char no_close, const char*flag) + eventually globally export argc and argv, so we don't need to pass it to bb_daemon(). git-svn-id: svn://busybox.net/trunk/busybox@15244 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - remove emacs layout block as suggested by Robert P.J. Dayaldot2006-05-192-16/+0
| | | | | | | - use shorter boilerplate while at it git-svn-id: svn://busybox.net/trunk/busybox@15141 69ca8d6d-28ef-0310-b511-8ec308f3f277
* pull Rules.mak from top_srcdir as pointed out by Robert P. J. Day on the ↵vapier2006-05-131-1/+1
| | | | | | mailing list git-svn-id: svn://busybox.net/trunk/busybox@15079 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - commentary typo and superfluous whitespace removal in weird messages.aldot2006-04-181-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14913 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Robert P Day: let menuconfig indent stuff for us, we don't havelandley2006-04-131-5/+5
| | | | | | | to do it in Config.in. git-svn-id: svn://busybox.net/trunk/busybox@14850 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - patch from Denis Vlasenko to add and use bb_xdaemon()aldot2006-04-122-4/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14834 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - patch from Denis Vlasenko to add and use bb_xsocket() and to usealdot2006-04-121-11/+2
| | | | | | | | bb_xopen some more while at it. Also use shorter boilerplate while at it. git-svn-id: svn://busybox.net/trunk/busybox@14833 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - revert back to r14406aldot2006-03-131-7/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14531 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - backout using features which are not available with the previous stablealdot2006-03-091-2/+6
| | | | | | | version of make (3.71.1). git-svn-id: svn://busybox.net/trunk/busybox@14477 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionlandley2006-03-064-4/+4
| | | | | | | definitions. (That should only be on prototypes.) git-svn-id: svn://busybox.net/trunk/busybox@14457 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - use absolute path for top_builddir and top_srcdir.aldot2006-03-021-0/+4
| | | | | | | Fixes make trying to include the very same file in an endless loop. git-svn-id: svn://busybox.net/trunk/busybox@14429 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - fixes parallel builds (make -j)aldot2006-03-011-12/+2
| | | | | | | - use less resources for the buildsystem itself git-svn-id: svn://busybox.net/trunk/busybox@14407 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Don't build directory libraries unless we're building an applet that needs it.landley2006-02-211-0/+2
| | | | | | | Cherry-picked from Devin Bayer's big MacOS X patch. git-svn-id: svn://busybox.net/trunk/busybox@14165 69ca8d6d-28ef-0310-b511-8ec308f3f277
* moved BB_BANNER to applets/version.c file: make kernel like version, vodz2006-02-162-2/+2
| | | | | | removed depend loop: busybox.h depend with BB_BT, and all sources depend with busybox.h git-svn-id: svn://busybox.net/trunk/busybox@14080 69ca8d6d-28ef-0310-b511-8ec308f3f277
* make the build system puuuuuuuuuuurtyvapier2006-02-021-3/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13793 69ca8d6d-28ef-0310-b511-8ec308f3f277
* just whitespacetimr2006-01-252-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13584 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add platform.h.aldot2006-01-222-31/+5
| | | | | | | - use shorter boilerplate while at it. git-svn-id: svn://busybox.net/trunk/busybox@13494 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - shared libbusybox.aldot2006-01-151-0/+5
| | | | | | | | - IMA compilation option (aka IPO, IPA,..) Please holler if i broke something.. git-svn-id: svn://busybox.net/trunk/busybox@13346 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Flush output to log promptly (bug 389).landley2005-12-121-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@12845 69ca8d6d-28ef-0310-b511-8ec308f3f277
* 20 bytes data to bssvodz2005-10-151-6/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11873 69ca8d6d-28ef-0310-b511-8ec308f3f277
* complex RESERVE_CONFIG_BUFFER --> bb_common_bufsiz1vodz2005-10-151-5/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11869 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - initialize the correct variablesaldot2005-10-131-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11855 69ca8d6d-28ef-0310-b511-8ec308f3f277
* use the shorter license headervapier2005-09-241-14/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11624 69ca8d6d-28ef-0310-b511-8ec308f3f277
* use brief license linevapier2005-09-241-15/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11618 69ca8d6d-28ef-0310-b511-8ec308f3f277
* more remove lost exportedvodz2005-09-221-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11574 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
* Cleanup patch from tito: migrate option parsing to the bb_ functions and fixlandley2005-09-141-25/+12
| | | | | | | types. git-svn-id: svn://busybox.net/trunk/busybox@11459 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Kunihiko IMAI writes:andersen2005-09-121-1/+1
| | | | | | | | | | | | | | | | We're using busybox and thank the authors. I found a short buffer allocation at busybox/sysklod/syslod.c. It mis-declares length of filenames, seems to forget for '\0' or two column numbered suffix of backup files (ex. messages.10). Here is a patch for the problem. Thanks. git-svn-id: svn://busybox.net/trunk/busybox@11429 69ca8d6d-28ef-0310-b511-8ec308f3f277
* use toplevel ARFLAGS and update default ARFLAGS to be quietvapier2005-07-271-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10923 69ca8d6d-28ef-0310-b511-8ec308f3f277
* applying fix for:pgf2005-07-201-1/+1
| | | | | | | | 0000143: sysklogd remote logging adds a space between facility and tag git-svn-id: svn://busybox.net/trunk/busybox@10874 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix typoe (buildddir -> builddir)vapier2005-04-211-3/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10139 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
* egor duda writes:andersen2004-10-082-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | Hi! I've created a patch to busybox' build system to allow building it in separate tree in a manner similar to kbuild from kernel version 2.6. That is, one runs command like 'make O=/build/some/where/for/specific/target/and/options' and everything is built in this exact directory, provided that it exists. I understand that applyingc such invasive changes during 'release candidates' stage of development is at best unwise. So, i'm currently asking for comments about this patch, starting from whether such thing is needed at all to whether it coded properly. 'make check' should work now, and one make creates Makefile in build directory, so one can run 'make' in build directory after that. One possible caveat is that if we build in some directory other than source one, the source directory should be 'distclean'ed first. egor git-svn-id: svn://busybox.net/trunk/busybox@9320 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch by Felipe Kellermann, fix a bug introduced in the last patch by adding ↵bug12004-09-141-15/+21
| | | | | | a condition around the remote logging, also adds some comments. git-svn-id: svn://busybox.net/trunk/busybox@9251 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Felipe Kellermann writes:andersen2004-09-081-29/+26
| | | | | | | | | | | | | | | | | | | | The Togg's sysklogd patch to use sendto() on remote logging is formatting strangely (using `<' and '>' surrounding the `msg' string message). This is OK, but this is not the standard way of formatting this message. So this patch does the following: o Fix the formatting to the standard way. o Uses `MAXLINE' when needed; o Don't loop sending messages without a "sleeping time", I'm now doing `now = 1', `now <<= 1'; o Don't die on `init_RemoteLog' when starting up (feature!) We're now trying to connect every time we have an invalid fd; o Removes one static uneeded variable. o Removes two automatic uneeded variables. git-svn-id: svn://busybox.net/trunk/busybox@9227 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tito writes:andersen2004-09-021-0/+2
| | | | | | | | | | | | | The second patch contains: 1) a size optimization for adduser.c 2) removes a warning about an unused variable in syslogd.c if CONFIG_FEATURE_REMOTE_LOG is not set 3)cosmetic fixes for addgroup_full_usage and adduser_full_usage Ciao, Tito git-svn-id: svn://busybox.net/trunk/busybox@9195 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Togg writes:andersen2004-08-261-28/+14
| | | | | | | | | | | | | | | | | Syslogd wont start if remote-logging is enabled and the connection to the remote-log server is not possible on syslogd startup. I found a patch somewhere which works like a charm. It uses sendto() which seems more reliable for this issue. Please see attached patch. Many people will be more happy with this included I think. Regards, Togg git-svn-id: svn://busybox.net/trunk/busybox@9171 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
* Part of patch from William Barsse, fixes a problem with unescaped %.bug12004-08-061-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9063 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Reverse my previous change, "::" is a GNU getopt extension that allowsbug12004-07-221-1/+2
| | | | | | | | an optional argument. Looks like a glibc bug to me git-svn-id: svn://busybox.net/trunk/busybox@8997 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix bug in accepting buffer size argumentbug12004-07-211-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8994 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Do not mess with the console logging level unlessandersen2004-06-251-5/+5
| | | | | | | | asked to do so. -Erik git-svn-id: svn://busybox.net/trunk/busybox@8928 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add missing 'S' to the getopt string.andersen2004-06-221-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8918 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Bastian Blank:andersen2004-06-221-1/+13
| | | | | | | | | | | | | | | | | | Hi folks The following patch adds a new log message output to syslogd. This output omits hostname and priority and is used in d-i to make the syslog output better readable without lossing information. Bastian I am applying this since I have syslogd hacked up in my wife's access point with the same format string.... Might as well make this hack official. -Erik git-svn-id: svn://busybox.net/trunk/busybox@8914 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Bastian Blank:andersen2004-06-221-11/+8
| | | | | | | | | | | | | | On Sat, Jun 19, 2004 at 10:57:37PM +0200, Bastian Blank wrote: > The following patch changes klogd to use openlog/syslog themself > instead of calling syslog_msg which always calls the triple > openlog/syslog/closelog. Updated patch: get rid of syslog_msg entirely. Request from Erik Andersen. Bastian git-svn-id: svn://busybox.net/trunk/busybox@8913 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Larry Doolittle writes:andersen2004-04-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | This is a bulk spelling fix patch against busybox-1.00-pre10. If anyone gets a corrupted copy (and cares), let me know and I will make alternate arrangements. Erik - please apply. Authors - please check that I didn't corrupt any meaning. Package importers - see if any of these changes should be passed to the upstream authors. I glossed over lots of sloppy capitalizations, missing apostrophes, mixed American/British spellings, and German-style compound words. What is "pretect redefined for test" in cmdedit.c? Good luck on the 1.00 release! - Larry git-svn-id: svn://busybox.net/trunk/busybox@8759 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove trailing whitespace. Update copyright to include 2004.andersen2004-03-157-29/+29
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8630 69ca8d6d-28ef-0310-b511-8ec308f3f277