aboutsummaryrefslogtreecommitdiff
path: root/sysklogd/syslogd.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* - move #include busybox.h to the very top so we pull in the configaldot2006-06-021-2/+1
| | | | | | | and eventual platform specific includes in early. git-svn-id: svn://busybox.net/trunk/busybox@15267 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - s/defined(__uClinux__)/BB_NOMMU/aldot2006-05-311-3/+3
| | | | | | | | | | 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-191-8/+0
| | | | | | | - use shorter boilerplate while at it git-svn-id: svn://busybox.net/trunk/busybox@15141 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 Denis Vlasenko to add and use bb_xdaemon()aldot2006-04-121-2/+1
| | | | 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
* 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
* moved BB_BANNER to applets/version.c file: make kernel like version, vodz2006-02-161-1/+1
| | | | | | 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
* just whitespacetimr2006-01-251-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13584 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add platform.h.aldot2006-01-221-15/+2
| | | | | | | - use shorter boilerplate while at it. git-svn-id: svn://busybox.net/trunk/busybox@13494 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
* more remove lost exportedvodz2005-09-221-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11574 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
* 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
* 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
* 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
* 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
* 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-151-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8630 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix from Paul Kortekaas for syslog -C option, size should be in kB.bug12004-02-221-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8549 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Fillod Stephane:andersen2003-12-191-4/+10
| | | | | | | | | 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. git-svn-id: svn://busybox.net/trunk/busybox@8129 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Get vfork_daemon_rexec working under uclinuxruss2003-12-151-4/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8087 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Arnd Ben Otto writes:andersen2003-10-091-1/+48
| | | | | | | | | | | | | | | | | | | | | | 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 git-svn-id: svn://busybox.net/trunk/busybox@7623 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add size parameter to syslogd -Cbug12003-09-261-5/+10
| | | | | | | Patch by Padraig, resubmitted by Fillod Stephane git-svn-id: svn://busybox.net/trunk/busybox@7564 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vodz, last_patch_104bug12003-09-101-4/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7459 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vodz, last patch 104bug12003-08-291-5/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7279 69ca8d6d-28ef-0310-b511-8ec308f3f277
* last_patch95 from vodz:andersen2003-07-281-2/+3
| | | | | | | | | | | | | | | | | | | | 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 git-svn-id: svn://busybox.net/trunk/busybox@7119 69ca8d6d-28ef-0310-b511-8ec308f3f277
* eliminate DOSTATIC, DODEBUG, etc and name them sensiblyandersen2003-07-221-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7102 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove remaining libc5 support codeandersen2003-07-221-6/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7090 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
* oopsandersen2003-05-231-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6850 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This patch from Vitezslav Batrla, is a cleaner fix for theandersen2003-05-231-15/+5
| | | | | | | problem with syslogd logging the '<' char. git-svn-id: svn://busybox.net/trunk/busybox@6849 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Apply patch from Georg Magschok to fix syslog behavior so that theandersen2003-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... git-svn-id: svn://busybox.net/trunk/busybox@6844 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major coreutils update.mjn32003-03-191-17/+17
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6751 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Dont die if logging remotely fails, patch by Joshua Jacksonbug12003-02-091-6/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6543 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update email address for Gennady Feldman <gena01@gena01.com>bug12002-12-121-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6196 69ca8d6d-28ef-0310-b511-8ec308f3f277
* run through indent and manually check resultbug12002-11-101-228/+253
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5906 69ca8d6d-28ef-0310-b511-8ec308f3f277
* hehe.andersen2002-09-171-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5543 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vodz' last_patch57: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 git-svn-id: svn://busybox.net/trunk/busybox@5541 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move #define MAXLINE so this compiles without circ buffers.mjn32002-08-061-3/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5162 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Oops. Code things so it actually works this time around...andersen2002-08-051-22/+15
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@5152 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Joel Coltoff <joel@wmi.com> noticed that following a recentandersen2002-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. git-svn-id: svn://busybox.net/trunk/busybox@5151 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Applied syslogd fix submitted by Bart Visscher:sandman2002-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. git-svn-id: svn://busybox.net/trunk/busybox@5071 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Larry Doolittle to teach syslogd to not give up when errno is EINTRandersen2002-04-131-1/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@4615 69ca8d6d-28ef-0310-b511-8ec308f3f277