# ex:ts=8 sw=4:
-# $OpenBSD: PackageRepository.pm,v 1.101 2014/01/12 20:23:29 phessler Exp $
+# $OpenBSD: PackageRepository.pm,v 1.102 2014/01/13 18:44:41 espie Exp $
#
# Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org>
#
my $dir = $object->{cache_dir};
my ($copy, $filename) = OpenBSD::Temp::permanent_file($dir, $name) or die "Can't write copy to cache";
- chmod 0644, $filename;
+ chmod((0666 & ~umask), $filename);
$object->{tempname} = $filename;
my $handler = sub {
my ($sig) = @_;