Re: Bad file permissions on .xmhcache

Ken Hornstein <[email protected]> Sun, 08 Sep 2013 16:31:32 -0400
Newsgroups gmane.mail.exmh.user
Message-ID <[email protected]>
>OK - but the mh_profile man page says for both Msg-Protect and
>Folder-Protect that these hold "An  octal  number  which  defines  the
>permission bits"

FWIW, the nmh code actually always converts this value as an octal number,
even if it lacks a leading zero.  So if we're assuming that nmh is the
canonical definition of the value of Msg-Protect, the exmh code should
be changed to match.

[email protected] says:
>Does this do the right thing if it ends up creating it with mode 00644?

Assuming Tcl is consistent in how it handles integers, I would say "yes".

# tclsh
% expr 0644
420
% expr 00644
420

--Ken