[Chicago-talk] CGI umask
Ed Summers
ehs at pobox.com
Wed Mar 3 08:26:47 CST 2004
On Tue, Mar 02, 2004 at 11:04:15PM -0600, jason scott gessner wrote:
> my $old_mask = umask 000;
> mkdir ($gallery_base_dsk . "$gallery_name/thumbnails", 0777);
> umask $old_mask;
Is it possible that the directory exists already? I would check the return of
mkdir()
mkdir($gallery_base_dsk . "$gallery_name/thumbnails", 0777) or die $!;
You could try to chmod( 0777, "$gallery_name/thumbnails" ) in situations
where the directory already exists.
Grasping at straws,
//Ed
More information about the Chicago-talk
mailing list