aboutsummaryrefslogtreecommitdiff
path: root/sysklogd/syslogd.c
AgeCommit message (Collapse)Author
2006-06-02- move #include busybox.h to the very top so we pull in the configBernhard Reutner-Fischer
and eventual platform specific includes in early.
2006-05-31- s/defined(__uClinux__)/BB_NOMMU/Bernhard Reutner-Fischer
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().
2006-05-19- remove emacs layout block as suggested by Robert P.J. DayBernhard Reutner-Fischer
- use shorter boilerplate while at it
2006-04-18- commentary typo and superfluous whitespace removal in weird messages.Bernhard Reutner-Fischer
2006-04-12- patch from Denis Vlasenko to add and use bb_xdaemon()Bernhard Reutner-Fischer
2006-04-12- patch from Denis Vlasenko to add and use bb_xsocket() and to useBernhard Reutner-Fischer
bb_xopen some more while at it. Also use shorter boilerplate while at it.
2006-03-06Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley
definitions. (That should only be on prototypes.)
2006-02-16moved BB_BANNER to applets/version.c file: make kernel like version, "Vladimir N. Oleynik"
removed depend loop: busybox.h depend with BB_BT, and all sources depend with busybox.h
2006-01-25just whitespaceTim Riker
2006-01-22- add platform.h.Bernhard Reutner-Fischer
- use shorter boilerplate while at it.
2005-10-1520 bytes data to bss"Vladimir N. Oleynik"
2005-10-15complex RESERVE_CONFIG_BUFFER --> bb_common_bufsiz1"Vladimir N. Oleynik"
2005-09-22more remove lost exported"Vladimir N. Oleynik"
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-20applying fix for:Paul Fox
0000143: sysklogd remote logging adds a space between facility and tag
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-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-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-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-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-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-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-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-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-11-10run through indent and manually check resultGlenn L McGrath
2002-09-17hehe.Eric Andersen
2002-09-17Vodz' last_patch57:Eric Andersen
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
2002-08-06Move #define MAXLINE so this compiles without circ buffers.Manuel Novoa III
2002-08-05Oops. Code things so it actually works this time around...Eric Andersen
-Erik
2002-08-05Joel Coltoff <joel@wmi.com> noticed that following a recentEric Andersen
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.
2002-07-19Applied syslogd fix submitted by Bart Visscher:Robert Griebl
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.
2002-04-13Patch from Larry Doolittle to teach syslogd to not give up when errno is EINTREric Andersen