STINNER Victor added the comment: > fileperm() sets 9 chars in buf[1] to buf[9]. Ah ok, fine, I missed the "&buf[1]" hack. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue11016> _______________________________________