From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 10 03:27:33 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 684E7106566C for ; Fri, 10 Sep 2010 03:27:33 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7E1B98FC12 for ; Fri, 10 Sep 2010 03:27:32 +0000 (UTC) Received: by iwn34 with SMTP id 34so2025032iwn.13 for ; Thu, 09 Sep 2010 20:27:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=lBUTGe2mxKOE8PCxz7QRuoVP2jWiQk/BSfthLazROfc=; b=FqS3JKInobiJ4Lpp4yKXO5Zlg/sje8MHIYpgJd9eLjEjtwLZb884bYhAvls/fYAOxc 338cTHl+0fA85dp+AJiSRw/zqbAx/r0P/Lc0I2n5NalTUjPVhq8tOAEgFCM75nKhJk4+ Y/uEJk+rdJZF9e/1tnSsOJo+84i4g8GN3IRIM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=yFqWRHaAlVr0byzAtQW1Zf0Sznbs2Ss432VOQdKrJDKHPgy6RsU7ITJVg6M6xheaao X+fXwux8sBcpoChQimUU0FCBUBpDWVzcbb3DVZHnDxYEVMEvxoYY8/TIOAfOBCDwXmpH evd/DgHD2K3WSVkvC7N5+8CFWLLz32c6rS4qk= MIME-Version: 1.0 Received: by 10.231.31.135 with SMTP id y7mr184955ibc.139.1284089251864; Thu, 09 Sep 2010 20:27:31 -0700 (PDT) Received: by 10.231.184.223 with HTTP; Thu, 9 Sep 2010 20:27:31 -0700 (PDT) Date: Thu, 9 Sep 2010 23:27:31 -0400 Message-ID: From: Aryeh Friedman To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: How to disallow logout X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Sep 2010 03:27:33 -0000 I have a directory that must not exist on logout and rm -rf is not sufficent to do it because the contents need to be processed by our version control system. The real life scenario is our version control system stores the repo for a given project encrypted but for techinical reasons it needs to keep the checkouted files in plain text (they are all in the same dir) and I want to *NEVER* have the plain text checkouted files in my dir when I logout, *BUT* instead of just deleting it I need to check them in... so how do I make my .logout so if the file exists it will not exit and give a error saying that dir is still there? (minor but unimportant side effect of the version control system is the dir will have a different name everytime it is made but always the same prefix)