[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: maildirmake



Vincent Renardias <vincent@ldsol.com> writes:

> On Sat, 29 Jan 2000, Roland Bauerschmidt wrote:

[...]

> > #!/bin/sh
> > # maildirmake -- creates a maildir
> > mkdir -p $1/new $1/cur $1/tmp && chmod -R 700 $1
> 
> Good idea. I'm going to include such a script in my next release of
> util-linux...

You can make that a bit safer like:

#!/bin/sh
umask 077
mkdir -p "$1/new" "$1/cur" "$1/tmp"

-- 
	 Carey Evans  http://home.clear.net.nz/pages/c.evans/

	 This message was composed from the finest electrons
	 used by many of the world's greatest writers.


Reply to: