Tcl Source Code

View Ticket
Login
Ticket UUID: 17a26ddf6600651cc7e2930fbe5a96c13fdbd8f2
Title: fCmd-27.5 and 27.6 fail because permission to set attribute is denied
Type: Bug Created on: 2014-10-22 15:18:17
Submitter: pooryorick Assigned to: nobody
Subsystem: 37. File System Severity: Minor
Priority: 5 Medium Last modified: 2014-10-22 15:22:53
Status: Open Closed by: nobody
Resolution: None Closed on:
Version: 8.5.17rc0
Description:
==== fCmd-27.5 TclFileAttrsCmd - setting one option FAILED
==== Contents of test case:
    createfile foo.tmp
    set attrs [file attributes foo.tmp]
    file attributes foo.tmp {*}[lrange $attrs 0 1]
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: could not set group for file "foo.tmp": not owner
    while executing
"file attributes foo.tmp {*}[lrange $attrs 0 1]"
    ("uplevel" body line 4)
    invoked from within
"uplevel 1 $script"
---- errorCode: POSIX EPERM {not owner}
==== fCmd-27.5 FAILED



==== fCmd-27.6 TclFileAttrsCmd - setting more than one option FAILED
==== Contents of test case:

    createfile foo.tmp
    set attrs [file attributes foo.tmp]
    file attributes foo.tmp {*}[lrange $attrs 0 3]

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: could not set group for file "foo.tmp": not owner
    while executing
"file attributes foo.tmp {*}[lrange $attrs 0 3]"
    ("uplevel" body line 4)
    invoked from within
"uplevel 1 $script"
---- errorCode: POSIX EPERM {not owner}
==== fCmd-27.6 FAILED
User Comments:
pooryorick (claiming to be changing group to the current group owner not allowed) added on 2014-10-22 15:22:53:
These errors occurred because the Tcl build directory inherited group ownership from a parent directory, and the group owner is not a group the user has access to.  The tests choose the first attribute in the attribute list, which happens to be "-group".  The failure could be resolved by selecting a less controversial attribute to operate on for the purpose of the tests.