From owner-freebsd-current Wed Mar 20 01:25:54 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id BAA16742 for current-outgoing; Wed, 20 Mar 1996 01:25:54 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id BAA16252 for ; Wed, 20 Mar 1996 01:21:39 -0800 (PST) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id KAA03047 for ; Wed, 20 Mar 1996 10:20:49 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id KAA08086 for freebsd-current@FreeBSD.org; Wed, 20 Mar 1996 10:20:48 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.7.4/8.6.9) id KAA07568 for freebsd-current@FreeBSD.org; Wed, 20 Mar 1996 10:08:20 +0100 (MET) From: J Wunsch Message-Id: <199603200908.KAA07568@uriah.heep.sax.de> Subject: Re: system running with DEVFS To: freebsd-current@FreeBSD.org (FreeBSD-current users) Date: Wed, 20 Mar 1996 10:08:19 +0100 (MET) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: from "Marc G. Fournier" at Mar 19, 96 07:22:23 pm X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL24 ME8a] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk As Marc G. Fournier wrote: > One thing I'm curious about, though, is: > > freebsd# ls -lt /devfs/log /dev/log > srw-rw-rw- 1 root wheel 0 Mar 19 19:11 /dev/log > crw------- 2 root wheel 7, 0 Mar 19 19:11 /devfs/log > > The two log devices seem to be created differently, but I'm > wondering if it is something that should be worried about, or if it > doesn't matter? I'm assuming that the "correct" mode is the one in > /dev/log...but would like to confirm before I attempt to fix subr_log.c > to duplicate this properly. /dev/log is the "Unix domain socket" (s/Unix/Posix/, or s/Unix/Local/ if you like it better) for syslog. Being a socket, it can only be created at run-time by the application opening the socket. Most likely, it should be /var/run/log instead (like /var/run/printer). /devfs/log is an error. It should be /devfs/klog instead: j@uriah 1016% ls -l /dev/*log* crw------- 1 root wheel 7, 0 Feb 10 1995 /dev/klog srw-rw-rw- 1 root wheel 0 Mar 16 00:55 /dev/log= -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)