Bad file permissions on .xmhcache

Wolfgang Denk <[email protected]> Sun, 08 Sep 2013 14:12:13 +0200
Newsgroups gmane.mail.exmh.user
Message-ID <[email protected]>
Hello,

every now and then I run into problems because one or more of the
.xmhcache files have bad file permissions, like that:

	-> ls -l Mail/drafts/.xmhcache
	--w----r-T 1 wd wd 0 Sep  6 14:55 Mail/drafts/.xmhcache

Now "--w----r-T" means 01204 (octal) which is 644 (decimal).
A permission of 0644 (rw-r--r--) would mmake sense (probably to me
modified by the umask settings), so it appears somewhere in the code
the lading '0' that marks octal numbers is missing, so a string value
of "644" gets interpreted as decimal number, resulting in the wrong
mode.

I tried to locate this is the code, but was not successful so far -
all places that use "chmod" use symbolic modes (like "a+rx), and
actually yhis is only the installer, so it should not affect a running
installation.

The rest of the code (lib/mime.tcl, lib/folderNew.tcl, lib/env.tcl)
all explicitly prepends a '0', so this should be OK< too.


Who else might be modifying the .xmhcache files?


Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]
"The trouble with doing something right the first time is that nobody
appreciates how difficult it was."                        - Walt West