Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107944494
D35304.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
904 B
Referenced Files
None
Subscribers
None
D35304.diff
View Options
diff --git a/lib/libc/gen/syslog.c b/lib/libc/gen/syslog.c
--- a/lib/libc/gen/syslog.c
+++ b/lib/libc/gen/syslog.c
@@ -435,18 +435,6 @@
status = CONNDEF;
}
- if (status == NOCONN) {
- /*
- * Try the old "/dev/log" path, for backward
- * compatibility.
- */
- (void)strncpy(SyslogAddr.sun_path, _PATH_OLDLOG,
- sizeof SyslogAddr.sun_path);
- if (_connect(LogFile, (struct sockaddr *)&SyslogAddr,
- sizeof(SyslogAddr)) != -1)
- status = CONNDEF;
- }
-
if (status == NOCONN) {
(void)_close(LogFile);
LogFile = -1;
diff --git a/sys/sys/syslog.h b/sys/sys/syslog.h
--- a/sys/sys/syslog.h
+++ b/sys/sys/syslog.h
@@ -37,7 +37,6 @@
#define _PATH_LOG "/var/run/log"
#define _PATH_LOG_PRIV "/var/run/logpriv"
-#define _PATH_OLDLOG "/dev/log" /* backward compatibility */
/*
* priorities/facilities are encoded into a single 32-bit quantity, where the
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 20, 7:38 PM (20 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15961623
Default Alt Text
D35304.diff (904 B)
Attached To
Mode
D35304: libc/syslog: fully deprecate and don't try to open "/dev/log"
Attached
Detach File
Event Timeline
Log In to Comment