<<< Date Index >>>     <<< Thread Index >>>

Re: HOW to set the UMASK?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday, May 18 at 07:34 PM, quoth Keld Jørn Simonsen:
> On Sun, May 18, 2008 at 12:13:06PM -0500, Kyle Wheeler wrote:
>> On Saturday, May 17 at 10:42 PM, quoth Keld Jørn Simonsen:
>>> I have a related problem, when I create files from mutt they are 
>>> 600, I would lke them to be 644. My umask is 022. Is there anything 
>>> I can do to have my new files 644?
>> 
>> Modify main.c. Mutt *ALWAYS* calls umask(077) before doing anything, 
>> so you'd need to either remove that call from the main.c or you'd need 
>> to modify it to suit your needs.
>
> I see. Would it be possible to add some command to .muttrc to override 
> this? eg a umask command? That would be easier for me and others needing 
> this functionality than recompiling the sources every time mutt is used 
> on a new system.
>
> Or maybe a "set no_mutt_umask=yes" to just keep the umask of the environment.

Well, unfortunately, there is currently no such setting in standard 
mutt. The Debian folks have put together a patch to provide that 
functionality, and you can apply that to your mutt. Here's the 
relevant Debian bug report: 
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=426317

Here's a similar patch: 
http://bereshit.synflood.at/svn/mutt-patches/trunk/patches/ak.umask.diff

If it's important to you, you should probably submit a bug at 
http://bugs.mutt.org

~Kyle
- -- 
It is a tragic mix-up when the United States spends $500,000 for every 
enemy soldier killed, and only $53 annually on the victims of poverty.
                                    -- Reverend Martin Luther King, Jr.
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iEYEARECAAYFAkgweYQACgkQBkIOoMqOI17xGQCfQ/CiSYGlSDoli826xYetdbuP
Sj8AoNlavFqYsxi7l2pIYdAN2CqUfBOy
=Umld
-----END PGP SIGNATURE-----