Tcl Source Code

View Ticket
Login
Ticket UUID: 6d2ef441cc67523991e71170cba571b8cf98838e
Title: Password protected zifps files cannot be opened in a+ mode
Type: Bug Created on: 2023-09-28 16:15:03
Submitter: apnadkarni Assigned to: nobody
Subsystem: - New Builtin Commands Severity: Important
Priority: 5 Medium Last modified: 2026-10-21 10:03:38
Status: Closed Closed by: nobody
Resolution: Fixed Closed on: 2023-09-29 03:35:21
Version: 8.7
Description:

(Note this is different from [5d308081e4] as files that are not password protected can be opened in a+ mode.)

% zipfs mount ../tests/zipfiles/test-password.zip / password
% set fd [open //zipfs:/cipher.bin a+]
invalid CRC

CRC error is a false positive. File can be read fine in read-only mode.

User Comments:
apnadkarni added on 2023-09-29 03:35:21:
Fixed in [9c204498a8].

jan.nijtmans added on 2023-09-29 08:39:36:

MacOS build failure: https://github.com/tcltk/tcl/actions/runs/6348251441


apnadkarni added on 2023-09-29 12:05:24:
Disabled password related tests on MacOS.

apnadkarni added on 2023-09-30 16:38:38:
Root cause for macos is likely the same as for [c315de9e44]. And repeating what I said there...

This bug is assigned to me, presumably by Jan. However, someone with Mac access and familiarity with that platform will need to pick this up. Tests run without error on Windows and Linux.

Also raising severity as it appears this is a password issue.

serhiy.storchaka added on 2026-10-21 10:03:38:

Fixed in 9.0.0 by [9c204498a8] (trunk: [bea92dfdc5]). The remaining macOS-only failures of the password tests are tracked in [bbe7c6ff9e].