From owner-freebsd-current Sun Jun 11 15:39:25 2000 Delivered-To: freebsd-current@freebsd.org Received: from overcee.netplex.com.au (peter1.corp.yahoo.com [208.48.107.4]) by hub.freebsd.org (Postfix) with ESMTP id 38F7937BAAD; Sun, 11 Jun 2000 15:39:23 -0700 (PDT) (envelope-from peter@netplex.com.au) Received: from netplex.com.au (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id A04EC1CD7; Sun, 11 Jun 2000 15:39:22 -0700 (PDT) (envelope-from peter@netplex.com.au) X-Mailer: exmh version 2.1.1 10/15/1999 To: David Scheidt Cc: Kris Kennaway , current@FreeBSD.ORG Subject: Re: mktemp() patch In-Reply-To: Message from David Scheidt of "Sun, 11 Jun 2000 16:47:04 CDT." Date: Sun, 11 Jun 2000 15:39:22 -0700 From: Peter Wemm Message-Id: <20000611223922.A04EC1CD7@overcee.netplex.com.au> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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