Tcl Source Code

View Ticket
Login
Ticket UUID: 1dc7f3e5f13be083d761b3f1102949e23cf3cc5b
Title: filesystem-1.30.3 fails when HOME is under a symlink
Type: Bug Version: 8.6
Submitter: gahr Created on: 2024-12-09 08:03:42
Subsystem: 16. Commands A-H Assigned To: apnadkarni
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2024-12-10 02:35:54
Resolution: Fixed Closed By: apnadkarni
    Closed on: 2024-12-10 02:35:54
Description:
As of [a479ad913c8b46a4], filesystem-1.30.3 checks that [file normalize ~] and $::env(HOME) produce the same result. This is problematic if $::env(HOME) contains an unnormalized path, e.g., when /home is a symlink to /usr/home. In my case, $::env(HOME) is /home/gahr, while [file normalize ~] is /usr/home/gahr, which makes the test fail.

I suggest to apply [file normalize] to both sides of the check.
User Comments: gahr added on 2024-12-09 13:50:32:
Works, thanks!

apnadkarni added on 2024-12-09 10:49:01:
@gahr, made your suggested changes. Please test.