aboutsummaryrefslogtreecommitdiff
path: root/sysklogd
AgeCommit message (Collapse)Author
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-14Cleanup patch from tito: migrate option parsing to the bb_ functions and fixRob Landley
types.
2005-09-12Kunihiko IMAI writes:Eric Andersen
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.
2005-07-27use toplevel ARFLAGS and update default ARFLAGS to be quietMike Frysinger
2005-07-20applying fix for:Paul Fox
0000143: sysklogd remote logging adds a space between facility and tag
2005-04-21fix typoe (buildddir -> builddir)Mike Frysinger
2005-04-06Removed the incorrect and confusing facility argument specified withPeter Kjellerstedt
openlog() as the correct facility will be specified with syslog() anyway.
2004-10-08egor duda writes:Eric Andersen
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
2004-09-14Patch by Felipe Kellermann, fix a bug introduced in the last patch by adding ↵Glenn L McGrath
a condition around the remote logging, also adds some comments.
2004-09-08Felipe Kellermann writes:Eric Andersen
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.
2004-09-02Tito writes:Eric Andersen
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
2004-08-26Togg writes:Eric Andersen
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
2004-08-26Tito writes:Eric Andersen
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
2004-08-06Part of patch from William Barsse, fixes a problem with unescaped %.Glenn L McGrath
2004-07-22Reverse my previous change, "::" is a GNU getopt extension that allowsGlenn L McGrath
an optional argument. Looks like a glibc bug to me
2004-07-21Fix bug in accepting buffer size argumentGlenn L McGrath
2004-06-25Do not mess with the console logging level unlessEric Andersen
asked to do so. -Erik
2004-06-22Add missing 'S' to the getopt string.Eric Andersen
2004-06-22Patch from Bastian Blank:Eric Andersen
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
2004-06-22Patch from Bastian Blank:Eric Andersen
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
2004-04-14Larry Doolittle writes:Eric Andersen
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
2004-03-15Remove trailing whitespace. Update copyright to include 2004.Eric Andersen
2004-02-22Fix from Paul Kortekaas for syslog -C option, size should be in kB.Glenn L McGrath
2003-12-19Patch from Fillod Stephane:Eric Andersen
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.
2003-12-15Get vfork_daemon_rexec working under uclinuxRuss Dill
2003-10-22Andreas Mohr writes:Eric Andersen
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
2003-10-09Arnd Ben Otto writes:Eric Andersen
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
2003-09-26Patch from Fillod Stephane Glenn L McGrath
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.
2003-09-26add size parameter to syslogd -CGlenn L McGrath
Patch by Padraig, resubmitted by Fillod Stephane
2003-09-10Vodz, last_patch_104Glenn L McGrath
2003-08-29Vodz, last patch 104Glenn L McGrath
2003-07-28Fixup bugs in last patchEric Andersen
2003-07-28last_patch95 from vodz:Eric Andersen
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
2003-07-26The logger utility does not really depend on CONFIG_SYSLOGD,Eric Andersen
since it can also be used with other syslog daemons -Erik
2003-07-22eliminate DOSTATIC, DODEBUG, etc and name them sensiblyEric Andersen
2003-07-22Remove remaining libc5 support codeEric Andersen
2003-07-14Update a bunch of docs. Run a script to update my email addr.Eric Andersen
2003-05-23oopsEric Andersen
2003-05-23This patch from Vitezslav Batrla, is a cleaner fix for theEric Andersen
problem with syslogd logging the '<' char.
2003-05-16Apply patch from Georg Magschok to fix syslog behavior so that theEric Andersen
'>' 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...
2003-03-19Major coreutils update.Manuel Novoa III
2003-02-28Add all the syslogd help textEric Andersen
2003-02-09Dont die if logging remotely fails, patch by Joshua JacksonGlenn L McGrath
2002-12-12Update email address for Gennady Feldman <gena01@gena01.com>Glenn L McGrath
2002-12-05Yet another major rework of the BusyBox config system, using the considerablyEric Andersen
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
2002-12-01add the -c option, modified version of a patch from Bastian BlankGlenn L McGrath
2002-11-10run through indent and manually check resultGlenn L McGrath
2002-11-10last_patch57 from Vladimir N. OleynikGlenn L McGrath
2002-09-30Vodz' last_patch57:Eric Andersen
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
2002-09-18patch from John Hall <john.hall@optionexist.co.uk> to change theEric Andersen
klogd specific messages to facility LOG_SYSLOG and tidies up some of the priorities.