Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 48289159ac6fbd1900f3176e994aec8519ef793a
Ticket: 2935503fffffffffffffffffffffffffffffffff
Incorrect mode field returned by file stat command
User & Date: dgp on 2011-10-13 00:24:34
Changes

  1. icomment:
    
    Test fails in a tcl/unix build on OSX Snow Leopard:
    
    
    ==== io-40.2 POSIX open access modes: CREAT FAILED
    ==== Contents of test case:
    
        file delete $path(test3)
        set f [open $path(test3) {WRONLY CREAT} 0o666]
        file stat $path(test3) stats
        set x [format "0o%o" [expr $stats(mode)&0o777]]
        puts $f "line 1"
        close $f
        set f [open $path(test3) r]
        lappend x [gets $f]
        close $f
        set x
    
    ---- Result was:
    0o644 {line 1}
    ---- Result should have been (exact matching):
    0o666 {line 1}
    ==== io-40.2 FAILED
    
    
    
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"