Return-Path: Delivered-To: apmail-httpd-apreq-dev-archive@www.apache.org Received: (qmail 86936 invoked from network); 19 Mar 2005 05:10:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Mar 2005 05:10:29 -0000 Received: (qmail 7016 invoked by uid 500); 18 Mar 2005 20:10:28 -0000 Delivered-To: apmail-httpd-apreq-dev-archive@httpd.apache.org Received: (qmail 6906 invoked by uid 500); 18 Mar 2005 20:10:27 -0000 Mailing-List: contact apreq-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list apreq-dev@httpd.apache.org Received: (qmail 6887 invoked by uid 99); 18 Mar 2005 20:10:27 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of mawic@gmx.de designates 213.165.64.20 as permitted sender) Received: from pop.gmx.de (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 18 Mar 2005 12:10:27 -0800 Received: (qmail invoked by alias); 18 Mar 2005 20:10:24 -0000 Received: from dsl-082-082-147-226.arcor-ip.net (EHLO [82.82.147.226]) [82.82.147.226] by mail.gmx.net (mp023) with SMTP; 18 Mar 2005 21:10:24 +0100 X-Authenticated: #20142289 Message-ID: <423B3587.3070505@gmx.de> Date: Fri, 18 Mar 2005 21:09:43 +0100 From: Markus Wichitill User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en, de MIME-Version: 1.0 To: Jonathan Vanasco CC: apreq-dev@httpd.apache.org Subject: Re: Upload Question References: <5b8e4dde7d68b3a65de106863f30776e@mastersofbranding.com> In-Reply-To: <5b8e4dde7d68b3a65de106863f30776e@mastersofbranding.com> X-Enigmail-Version: 0.90.1.1 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Jonathan Vanasco wrote: > I've noticed that i can't seem to affect the umask of uploaded files > that i $upload->link() > > I *think* this is because I am changing the umask in mod_perl, and the > link is happening in libaprq, so nothing I do in modperl affects libaprq > -- and that the only way for me to change the umask used to create the > files via link would be to change the umask for the apache user (or call > a chmod in modperl after the link). > > i'd like to eliminate the chmod call if possible, but it does work so I > can live with it > > can anyone confirm this or yell at me for being stupid? I stumbled over that a few years ago, too. apreq 1.x has the file permissions hardcoded to 0600 and ignores the user's umask. Just keep the "chmod 0666 & ~umask(), $file" or whatever.