Tcl Source Code

View Ticket
Login
Ticket UUID: 218155
Title: file attributes -owner & -group for symlinks behave wrong
Type: Bug Version: final: 8.1.1
Submitter: nobody Created on: 2000-10-26 00:53:53
Subsystem: 37. File System Assigned To: nobody
Priority: 2 Severity:
Status: Closed Last Modified: 2001-04-21 12:51:36
Resolution: Invalid Closed By: dgp
    Closed on: 2001-04-21 05:51:36
Description:
OriginalBugID: 2176 Bug
Version: 8.1.1
SubmitDate: '1999-06-04'
LastModified: '1999-08-14'
Severity: MED
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
RelatedBugIDs: 2179
OS: Linux-Red Hat
OSVersion: 6.0
Machine: Other
FixedDate: '2000-10-25'
ClosedDate: '1999-08-14'


Name:
Mikko Kiviniemi

ReproducibleScript:
Create a file and a symlink that points to the file. 
    Query 'file attributes -owner' from the symlink.
    Set 'file attributes -owner' to the symlink.
    Query 'file attributes -group' from the symlink.
    Set 'file attributes -group' to the symlink.

ObservedBehavior:
When querying or setting [file attributes -owner or -group] for symlinks, 
the values are read from and set to the file that the link points to.

DesiredBehavior:
The values should be read from and set to the symlink itself. (It can be
done using the shell command 'chown')

From the unix command line, chown and chmod affect the file that
the link is to, not the link itself. 
-- 08/14/1999 hobbs