[BusyBox] busybox syslogd on devfs systems
Magick
magick at dds.nl
Wed Mar 21 23:15:26 UTC 2001
I ran into a problem running busybox syslogd on a system with devfs. It
seems you can't create regular files there, to solve this I changed the
code to:
syslogd.c
sock_fd=open (_PATH_LOG, O_RDWR | O_CREAT, 0644);
if (sock_fd!=-1) {
close (sock_fd);
if (realpath (_PATH_LOG, lfile) == NULL)
perror_msg_and_die ("Could not resolve path to " _PATH_LOG);
}
else
{
strncpy(lfile, _PATH_LOG, BUFSIZ);
}
Bart
--
Attack is the secret of defense; defense is the planning of an attack.
-- Sun Tzu, The Art Of War
GPG key = 1024D/4B086D06
Fingerprint = CD4D 5601 287D F075 6F96 6157 99F9 E56A 4B08 6D06
More information about the busybox
mailing list