Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Long group names cause tests to fail

Closed / Fixed218330ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:56:18
OriginalBugID: 3914 Bug
Version: 8.2.3
SubmitDate: '1999-12-21'
LastModified: '1999-12-21'
Severity: LOW
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
OS: HP-UX
OSVersion: 11.0
Machine: 712/80
FixedDate: '2000-10-25'
ClosedDate: '1999-12-21'


Name:
Laurent Duperval

ReproducibleScript:
I belong to an NIS group, the name of which is more than 8 charcters long. When doing
a 'ls -l', you can see the first 8 letters and the rest are chopped off. But the group name
must be specified using all the letters, or else the OS reports that the group is invalid.

ObservedBehavior:
fCmd.test

==== fCmd-27.5 TclFileAttrsCmd - setting one option FAILED
==== Contents of test case:

    catch {file delete -force -- foo.tmp}
    createfile foo.tmp
    set attrs [file attributes foo.tmp]
    list [catch {eval file attributes foo.tmp [lrange $attrs 0 1]} msg] $msg [file delete -force -- foo.tmp]

---- Result was:
1 {could not set group for file "foo.tmp": group "developp" does not exist} {}
---- Result should have been:
0 {} {}
==== fCmd-27.5 FAILED

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

    catch {file delete -force -- foo.tmp}
    createfile foo.tmp
    set attrs [file attributes foo.tmp]
    list [catch {eval file attributes foo.tmp [lrange $attrs 0 3]} msg] $msg [file delete -force -- foo.tmp]

---- Result was:
1 {could not set group for file "foo.tmp": group "developp" does not exist} {}
---- Result should have been:
0 {} {}
==== fCmd-27.6 FAILED

unixFCmd.test

==== unixFCmd-15.2 SetGroupAttribute - invalid file FAILED
==== Contents of test case:

    catch {file delete -force -- foo.test}
    list [catch {file attributes foo.test -group $group} msg] $msg

---- Result was:
1 {could not set group for file "foo.test": group "" does not exist}
---- Result should have been:
1 {could not set group for file "foo.test": no such file or directory}
==== unixFCmd-15.2 FAILED

DesiredBehavior:
Well, I expect it to work properly even if the group name is too long. But then, if the OS isn't even bothering
to report the complete group name...



This looks like a system bug, as the user notes it also effects
'ls'.  There are no char size limitation for getting the group
name in unix/tclUnixFCmd.c. 
-- 12/21/1999 hobbs
welch Closed ticket [218330ffff]. [History diff]2000-10-26 08:20:06
Log in (anonymous is fine) to add a comment.