[Top][All Lists]

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

Re: restrictive umask vs gnupload

From: Eric Blake
Subject: Re: restrictive umask vs gnupload
Date: Tue, 06 Dec 2011 15:00:58 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111115 Thunderbird/8.0

On 12/06/2011 01:37 PM, Jim Meyering wrote:
> I have a few ways to avoid that:
>   - change gnupload to set umask 022
>   - change gnupload to run chmod go+r on each uploaded file (may not
>       always be appropriate?)

> I'd prefer to change gnupload.

Agreed.  Either of the two changes I highlighted above seem reasonable;
although the second seems to me to be less prone to failure (changing
the umask affects new files, but not existing files with too-tight
restrictions), and I can't think of any useful scenario where you _want_
gnupload to push a restrictive permission file into a public location
(after all, the point of using gnupload is to share a file with the public)

> Opinions, preferences, "get over it!" ;-)

Definitely worth a patch.

Eric Blake   address@hidden    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]