* zipvfs.tcl: Fix for zip symlinks not supported anymore, bug
3505283
+2012-03-15 Wojciech Kocjan <zoro2@users.sourceforge.net>
+
+ * zipvfs.tcl: Fix for zip symlinks not supported anymore, bug 3505283
+
2011-11-28 Steve Huntley <stephen.huntley@alum.mit.edu>
* vfslib.tcl: Applied contributed patch for bug 3412801. Clean up watch
#::vfs::log "stat $name"
::zip::stat $zipfd $name sb
#::vfs::log [array get sb]
- # remove additional mode bits to prevent Tcl from reporting Fossil archives
- # as socket types
- set sb(mode) [expr {$sb(mode) & 0x01ff}]
+ # remove socket mode bit (0xc000) to prevent Tcl from reporting Fossil archives as socket types
+ if {($sb(mode) & 0xc000) == 0xc000} {
+ set sb(mode) [expr {$sb(mode) ^ 0xc000}]
+ }
array get sb
}