Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Apr 2002 22:25:31 +0100
From:      Ceri Davies <setantae@submonkey.net>
To:        Thomas Cannon <tcannon@noops.org>
Cc:        freebsd-questions@FreeBSD.ORG, security-officer@freebsd.org
Subject:   Re: I think this could be better
Message-ID:  <20020418212531.GA11786@submonkey.net>
In-Reply-To: <20020418140202.A5528-100000@stereophonic.noops.org>
References:  <20020418205451.GA11069@submonkey.net> <20020418140202.A5528-100000@stereophonic.noops.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020418212531.GA11786>