From owner-freebsd-current@FreeBSD.ORG Wed Apr 4 08:51:13 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 39A9516A408 for ; Wed, 4 Apr 2007 08:51:13 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.225]) by mx1.freebsd.org (Postfix) with ESMTP id E151C13C4C3 for ; Wed, 4 Apr 2007 08:51:12 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: by wr-out-0506.google.com with SMTP id 70so107216wra for ; Wed, 04 Apr 2007 01:51:12 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=IfNjoWQSvcMaL2KtAKZ6FiZb2RhKBDo42Hci1pOd/fQxd9SwuYvRznvN3HFTevN2jjM1y1xQEa7hgJ//urmA7RlOHKcW3GvGBMnzHVaTGQMTOV+pHrHtSEE4817o5zB+tP+79OxOwPyHoeGd9v4C9wPB3Y4pbsm/zCyKQ3BKG/Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=DYSJ7Zrt5NMtx5AnCYGhxp4TqQ/hmpANvQddotoKpKPUxVIn4RTObP3xUTytv2/g2ReoR7QAzv7djs/V8cP/XnnEtBjRnIwtoDEXHFhQG3GdB+DZLzl9yPk4XPT6y2Zz0NC3fcpBtRh1Gu8teTAAFz8GjhXTP2txGQFkxrxLO5E= Received: by 10.115.77.1 with SMTP id e1mr145715wal.1175676671918; Wed, 04 Apr 2007 01:51:11 -0700 (PDT) Received: by 10.114.201.2 with HTTP; Wed, 4 Apr 2007 01:51:11 -0700 (PDT) Message-ID: Date: Wed, 4 Apr 2007 12:51:11 +0400 From: "Andrew Pantyukhin" Sender: infofarmer@gmail.com To: "Maxim Sobolev" In-Reply-To: <46128475.9060602@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46128475.9060602@FreeBSD.org> X-Google-Sender-Auth: b5ff697ca4c39fc0 Cc: FreeBSD Current Subject: Re: Surviving /dev/null disappearance X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Apr 2007 08:51:13 -0000 On 4/3/07, Maxim Sobolev wrote: > Patch ld(1) to detect the condition and don't unlink the device node? Yes, but there has to be a generic solution, so that we don't reinvent the wheel for every one of the thousands apps that may do this. Isn't there some safety-net wrapper function that refuses to remove device nodes and maybe some other types of files?