Skip to content
Tcl Source Code Artifact [68a5ce4b18]
Login

Artifact [68a5ce4b18]

Artifact 68a5ce4b180b250e79b67b0bdea5ecdef497fb0ee0dd21a52b9bef7006ca8f7a:

Ticket change [68a5ce4b18] - New ticket [f91ee30d335fcae5|f91ee30d33] <i>Opening a zipfs file in mode r+ truncates at position of last write</i>. by apnadkarni on 2023-09-26 09:11:51.
D 2023-09-26T09:11:51.415
J assignee nobody
J closer nobody
J cmimetype text/x-markdown
J comment In\sthe\ssample\sbelow,\sthe\sread\sat\sthe\send\sshould\sbe\ssame\sas\sthe\sfirst\sexcept\sfor\sreplacing\sthe\sfirst\s`t`\swith\san\s`X`.\sInstead\sthe\sfile\sis\struncated\sat\sthe\strailing\send\sof\sthe\slast\swrite.\r\n\r\n```\r\n%\szipfs\smount\s../tests/zipfiles/test.zip\s/mt\r\n%\sset\sfd\s[open\s//zipfs:/mt/test\sr]\r\nzipfs_37_1\r\n%\sread\s$fd\r\ntest\r\n\r\n%\sclose\s$fd\r\n%\sset\sfd\s[open\s//zipfs:/mt/test\sr+]\r\nzipfs_37_2\r\n%\sputs\s-nonewline\s$fd\sX\r\n%\sclose\s$fd\r\n%\sset\sfd\s[open\s//zipfs:/mt/test\sr]\r\nzipfs_0_3\r\n%\sread\s$fd\r\nX\r\n%\sclose\s$fd\r\n```
J foundin 8.7
J is_private 0
J login apnadkarni
J priority 5\sMedium
J private_contact 9546e9877f1a8899e25a89082561ee694e7fb402
J resolution None
J severity Severe
J status Open
J submitter apnadkarni
J subsystem -\sNew\sBuiltin\sCommands
J title Opening\sa\szipfs\sfile\sin\smode\sr+\struncates\sat\sposition\sof\slast\swrite
J type Bug
K f91ee30d335fcae5ad075155d2bf63423fb8b0ad
U apnadkarni
Z e87ef475bf6148694045ec8db60e79d3