summaryrefslogtreecommitdiff
path: root/sysklogd (follow)
Commit message (Collapse)AuthorAgeFilesLines
* egor duda writes:Eric 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
* Patch by Felipe Kellermann, fix a bug introduced in the last patch by adding ↵Glenn L McGrath2004-09-141-15/+21
| | | | a condition around the remote logging, also adds some comments.
* Felipe Kellermann writes:Eric 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.
* Tito writes:Eric 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
* Togg writes:Eric 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
* 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
* Part of patch from William Barsse, fixes a problem with unescaped %.Glenn L McGrath2004-08-061-1/+1
|
* Reverse my previous change, "::" is a GNU getopt extension that allowsGlenn L McGrath2004-07-221-1/+2
| | | | | an optional argument. Looks like a glibc bug to me
* Fix bug in accepting buffer size argumentGlenn L McGrath2004-07-211-1/+1
|
* Do not mess with the console logging level unlessEric Andersen2004-06-251-5/+5
| | | | | asked to do so. -Erik
* Add missing 'S' to the getopt string.Eric Andersen2004-06-221-1/+1
|
* Patch from Bastian Blank:Eric 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
* Patch from Bastian Blank:Eric 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
* Larry Doolittle writes:Eric 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
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-157-29/+29
|
* Fix from Paul Kortekaas for syslog -C option, size should be in kB.Glenn L McGrath2004-02-221-1/+1
|
* Patch from Fillod Stephane:Eric Andersen2003-12-193-8/+32
| | | | | | You will find in the attached file "syslog.patch" a patch which adds config options to set at compile time the size of the circular buffer, and some documentation update.
* Get vfork_daemon_rexec working under uclinuxRuss Dill2003-12-152-7/+9
|
* Andreas Mohr writes:Eric Andersen2003-10-221-4/+4
| | | | | | | | | | | the busybox menuconfig triggered my "inacceptable number of spelling mistakes" upper level, so I decided to make a patch ;-) I also improved some wording to describe some things in a better way. Many thanks for an incredible piece of software! Andreas Mohr, random OSS developer
* Arnd Ben Otto writes:Eric Andersen2003-10-092-1/+56
| | | | | | | | | | | | | | | | | | | Hi Eric I have written a small patch for the Busybox syslogd. With this patch one can limit the size of the messagfile. As soon as the limit is reached the syslogd can rotate or purge the messagefile(s) on his own. There is no necessity to use an external rotatescript. Even if logread does something similar, its very handy to have some messagefile after your box crash. I wrote this patch initial vor BB 0.6x where no cron daemon was avail. Now I adapted it for the new Version and i hope it is still useful. At least I still use it :-) bye Arnd
* Patch from Fillod Stephane Glenn L McGrath2003-09-261-18/+68
| | | | | | | Add follow mode to logread, ala "tail -f /var/log/messages" Note: output to a slow serial terminal can have side effects on syslog because of the semaphore. In such case, define RC_LOGREAD.
* add size parameter to syslogd -CGlenn L McGrath2003-09-261-5/+10
| | | | Patch by Padraig, resubmitted by Fillod Stephane
* Vodz, last_patch_104Glenn L McGrath2003-09-101-4/+5
|
* Vodz, last patch 104Glenn L McGrath2003-08-291-5/+1
|
* Fixup bugs in last patchEric Andersen2003-07-281-1/+0
|
* last_patch95 from vodz:Eric Andersen2003-07-282-4/+5
| | | | | | | | | | | | | | | | | Hi. Last patch have new libbb function vfork_rexec() for can use daemon() to uClinux system. This patched daemons: syslog, klogd, inetd, crond. This not tested! I havn`t this systems. Also. Previous patch for feature request MD5 crypt password for httpd don`t sended to this mailist on 07/15/03 (mailist have Pytom module problem?). The previous patch included, and have testing. --w vodz
* The logger utility does not really depend on CONFIG_SYSLOGD,Eric Andersen2003-07-261-5/+4
| | | | | since it can also be used with other syslog daemons -Erik
* eliminate DOSTATIC, DODEBUG, etc and name them sensiblyEric Andersen2003-07-221-1/+1
|
* Remove remaining libc5 support codeEric Andersen2003-07-223-21/+1
|
* Update a bunch of docs. Run a script to update my email addr.Eric Andersen2003-07-145-8/+5
|
* oopsEric Andersen2003-05-231-1/+2
|
* This patch from Vitezslav Batrla, is a cleaner fix for theEric Andersen2003-05-231-15/+5
| | | | problem with syslogd logging the '<' char.
* Apply patch from Georg Magschok to fix syslog behavior so that theEric Andersen2003-05-161-8/+18
| | | | | | | | '>' charactor can be logged, per rfc3164. Also, a small patch from me to fix it so we use MAXLINE when allocating the buffer, which is consistant with use everywhere else. This is needed since uClibc defines BUFSIZE as 255, causing lines to be truncated at 255...
* Major coreutils update.Manuel Novoa III2003-03-194-26/+26
|
* Add all the syslogd help textEric Andersen2003-02-281-16/+51
|
* Dont die if logging remotely fails, patch by Joshua JacksonGlenn L McGrath2003-02-091-6/+2
|
* Update email address for Gennady Feldman <gena01@gena01.com>Glenn L McGrath2002-12-123-7/+7
|
* Yet another major rework of the BusyBox config system, using the considerablyEric Andersen2002-12-052-21/+48
| | | | | | | | modified Kbuild system I put into uClibc. With this, there should be no more need to modify Rules.mak since I've moved all the interesting options into the config system. I think I've got everything updated, but you never know, I may have made some mistakes, so watch closely. -Erik
* add the -c option, modified version of a patch from Bastian BlankGlenn L McGrath2002-12-011-4/+21
|
* run through indent and manually check resultGlenn L McGrath2002-11-101-228/+253
|
* 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
* patch from John Hall <john.hall@optionexist.co.uk> to change theEric Andersen2002-09-181-4/+4
| | | | | klogd specific messages to facility LOG_SYSLOG and tidies up some of the priorities.
* hehe.Eric Andersen2002-09-171-1/+1
|
* Vodz' last_patch57:Eric Andersen2002-09-171-104/+93
| | | | | | | | | | | | Ok. Patch with reduce size ready. Notes: syslogd imposible close logsocket, the real programm write logmessages (hmm, cycle loop?) (Excuse me - this have small tab-formats rewroting also) text data bss dec hex filename 2913 332 12388 15633 3d11 syslogd.o 3109 332 9252 12693 3195 syslogd_old.o
* Run through indent, fix commentsGlenn L McGrath2002-08-221-22/+24
|
* Move #define MAXLINE so this compiles without circ buffers.Manuel Novoa III2002-08-061-3/+2
|
* Oops. Code things so it actually works this time around...Eric Andersen2002-08-051-22/+15
| | | | -Erik
* Joel Coltoff <joel@wmi.com> noticed that following a recentEric Andersen2002-08-051-2/+2
| | | | | | | change in uClibc that changed opening the /dev/log socket as SOCK_STREAM to SOCK_DGRAM, busybox syslogd no longer worked since it needed a matching change. This fixes it so it works once again.
* Applied syslogd fix submitted by Bart Visscher:Robert Griebl2002-07-191-1/+3
| | | | | | I am using BB 0.60.2 in a floppy distro, and the syslog (and logger) is unable to log the "<" char. This shows up in ppp logfiles. [...] #logger "<pcomp>" results in "comp>" arriving at the log.