From owner-freebsd-bugs Thu Aug 23 8:16:37 2001 Delivered-To: freebsd-bugs@freebsd.org Received: from Awfulhak.org (gw.Awfulhak.org [217.204.245.18]) by hub.freebsd.org (Postfix) with ESMTP id B11C437B405 for ; Thu, 23 Aug 2001 08:16:32 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [fec0::1:12]) by Awfulhak.org (8.11.5/8.11.5) with ESMTP id f7NFGiv37253; Thu, 23 Aug 2001 16:16:44 +0100 (BST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.4/8.11.4) with ESMTP id f7NFGZg72110; Thu, 23 Aug 2001 16:16:35 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200108231516.f7NFGZg72110@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Dmitry Morozovsky Cc: cjclark@alum.mit.edu, freebsd-bugs@FreeBSD.ORG, brian@freebsd-services.com Subject: Re: bin/29966: cleanup of ppp server socket on unclean startup In-Reply-To: Message from Dmitry Morozovsky of "Thu, 23 Aug 2001 14:16:12 +0400." <20010823141058.J65645-100000@woozle.rinet.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 23 Aug 2001 16:16:35 +0100 From: Brian Somers Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > CJC> Does your purgedir() not look like this? > > oops. seems I miss something during mergemaster. Yes, now it should remove > anything which is not directory. So, my trouble gone away. The only thing > I suppose is useful according to this issue now is change ppp.conf both in > /etc/ppp and in examples to move example server sockets to /var/run. FWIW, purgedir() was broken in 4.3-RELEASE. My MFC request fixing this during the 4.3 code-slush was refused. 4.3 went out with a broken cleaning of /var/run/ :( I don't think the examples should be changed to say /var/run as /var/run is only writable by root and ppp's diagnostic socket is created with the privileges of the user that ran ppp. If bind() maybe returned EADDRNOTAVAIL instead of EADDRINUSE for stale socket files, maybe ppp could do something about this... > Thank you again. > > Sincerely, > D.Marck [DM5020, DM268-RIPE, DM3-RIPN] > ------------------------------------------------------------------------ > *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** > ------------------------------------------------------------------------ -- Brian http://www.freebsd-services.com/ Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message