Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Jun 2000 15:39:22 -0700
From:      Peter Wemm <peter@netplex.com.au>
To:        David Scheidt <dscheidt@enteract.com>
Cc:        Kris Kennaway <kris@FreeBSD.ORG>, current@FreeBSD.ORG
Subject:   Re: mktemp() patch 
Message-ID:  <20000611223922.A04EC1CD7@overcee.netplex.com.au>
In-Reply-To: Message from David Scheidt <dscheidt@enteract.com>  of "Sun, 11 Jun 2000 16:47:04 CDT." <Pine.NEB.3.96.1000611164530.2409B-100000@shell-1.enteract.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
David Scheidt wrote:
> On Wed, 7 Jun 2000, Kris Kennaway wrote:
> 
> :This patch was developed by Peter Jeremy and myself and increases the
> :number of possible temporary filenames which can be generated by the
> :mktemp() family, by more densely encoding the PID and using a larger set
> :of characters to randomly pad with.
> :
> :Instead of using only alphabetic characters, the patch uses the following
> :character set:
> :
> :0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz@#%^-_=+:,.~
> 
> ":" is path seperator in Apple's HFS filesystem.  "@" is used as the line
> erase character in some shells.  "#" is rubout in some shells.

# is a comment
~ at the beginning is a ~username
^ is an alias for | in old shells

These could matter in the light of mktemp(1).
file=`mktemp foo.XXXX`

Why 74 characters?  Why not 64?

Cheers,
-Peter



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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