[uClibc]PATCH: syslog.c
Tobias Anderberg
tobias.anderberg at axis.com
Tue Jul 9 14:44:29 UTC 2002
Without the patch below opening /dev/log fails with
-1 EPROTOTYPE (Protocol wrong type for socket)
with a subsequent error upon writing to it
-1 ENOTCONN (Transport endpoint is not connected)
/tobba
Index: syslog.c
===================================================================
RCS file: /var/cvs/uClibc/libc/misc/syslog/syslog.c,v
retrieving revision 1.8
diff -u -w -r1.8 syslog.c
--- syslog.c 2 Jul 2002 09:07:53 -0000 1.8
+++ syslog.c 9 Jul 2002 14:38:58 -0000
@@ -276,7 +276,7 @@
(void)strncpy(SyslogAddr.sa_data, _PATH_LOG,
sizeof(SyslogAddr.sa_data));
if (LogStat & LOG_NDELAY) {
- if ((LogFile = socket(AF_UNIX, SOCK_STREAM, 0)) == -1){
+ if ((LogFile = socket(AF_UNIX, SOCK_DGRAM, 0)) == -1){
UNLOCK;
return;
}
More information about the uClibc
mailing list