From owner-freebsd-questions Thu Apr 18 14:25:39 2002 Delivered-To: freebsd-questions@freebsd.org Received: from rhadamanth.submonkey.net (pc4-card4-0-cust162.cdf.cable.ntl.com [80.4.14.162]) by hub.freebsd.org (Postfix) with ESMTP id 98CAD37B400; Thu, 18 Apr 2002 14:25:34 -0700 (PDT) Received: from setantae by rhadamanth.submonkey.net with local (Exim 3.35 #1) id 16yJPH-00037P-00; Thu, 18 Apr 2002 22:25:31 +0100 Date: Thu, 18 Apr 2002 22:25:31 +0100 From: Ceri Davies To: Thomas Cannon Cc: freebsd-questions@FreeBSD.ORG, security-officer@freebsd.org Subject: Re: I think this could be better Message-ID: <20020418212531.GA11786@submonkey.net> Mail-Followup-To: Ceri Davies , Thomas Cannon , freebsd-questions@FreeBSD.ORG, security-officer@freebsd.org References: <20020418205451.GA11069@submonkey.net> <20020418140202.A5528-100000@stereophonic.noops.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020418140202.A5528-100000@stereophonic.noops.org> User-Agent: Mutt/1.3.28i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Apr 18, 2002 at 02:04:09PM -0700, Thomas Cannon wrote: > > And if you don't have /tmp mounted with nosymfollow (sigh...), then you'll > > get "mkdir: install.352: File exists" instead. > > Nope. No errors. You're forgetting the "-p" that is present in the > Makefile: > > [root@stereophonic]# mkdir install.666/ > mkdir: install.666/: File exists > [root@stereophonic]# mkdir -p install.666/ > [root@stereophonic]# This makes we wonder why we even bother with the -p : {setantae@rhadamanth}-{/tmp} $ mkdir install.34534 {setantae@rhadamanth}-{/tmp} $ mkdir install.34534 mkdir: install.34534: File exists {setantae@rhadamanth}-{/tmp} $ rmdir install.34534 {setantae@rhadamanth}-{/tmp} $ ln -s /etc.old/passwd install.34534 {setantae@rhadamanth}-{/tmp} $ mkdir install.34534 mkdir: install.34534: File exists {setantae@rhadamanth}-{/tmp} $ "mkdir -m 0700 ${TMPDIR}" would be better, no ? Ceri -- get the cool shoe shine To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message