David Oberhollenzer
06cbfcc1cb
Fix path for creating the log directory
...
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-11-05 21:54:40 +01:00
David Oberhollenzer
39fc7d53f4
Update README
...
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-11-05 21:43:03 +01:00
David Oberhollenzer
fb498dba96
Remove any pre-existing socket before binding
...
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-11-05 21:40:50 +01:00
David Oberhollenzer
a09f0bd8e0
Store log files in /var/log/syslog, also create parent directories
...
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-10-29 15:41:56 +01:00
David Oberhollenzer
5fcb1a06cb
Add extra bounds check to syslog message parser
...
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-10-29 15:36:29 +01:00
David Oberhollenzer
efa304b483
minor cleanup
...
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-10-28 23:54:11 +01:00
David Oberhollenzer
a70b85fd64
minor klogd fixes
...
when copying the left over stub, always make sure we copy the null
terminator as well. Theoretically shouldn't be a problem since we
exit the inner loop anyway and then append to the buffer and add
a new null terminator, but just to be safe, make sure the buffer
is *ALWAYS* null-terminated.
When we are at it, skip the buffer copy if we didn't consume any
input and actually compare the value against '\0' instead of just
testing for *ptr (readabillity).
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-10-28 15:28:03 +01:00
David Oberhollenzer
7dfe5f6285
Add README.md file
...
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-10-28 14:27:10 +01:00
David Oberhollenzer
200daf7dbb
Import syslog utility program
...
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-10-28 14:25:50 +01:00
David Oberhollenzer
49f52b1571
Relicense the code under OpenBSD style ISC license
...
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-10-28 12:34:57 +01:00
David Oberhollenzer
a4423189ab
Initial import
...
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-10-28 12:31:03 +01:00