Skip to content
Tcl Source Code View Ticket
Login

View Ticket

filesystem-1.30.3 fails when HOME is under a symlink

Closed / Fixed1dc7f3e5f13be083d761b3f1102949e23cf3cc5bCreated 2 years agoUpdated 2 years ago
Descriptionplain2024-12-09 08:03:42
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.
Referenced by3
  • f494e8b592Merge 8.7. Fix [1dc7f3e5f1] - filesystem-1.30.3 should normalize before comparing. Tx @gahr check-in2024-12-09 10:47:06
  • 3709e88a03Merge 8.6. Fix [1dc7f3e5f1] - filesystem-1.30.3 should normalize before comparing. Tx @gahr check-in2024-12-09 10:38:23
  • 631fac1ae5Fix [1dc7f3e5f1] - filesystem-1.30.3 should normalize before comparing. Tx @gahr check-in2024-12-09 10:32:28
gahr Ticket [1dc7f3e5f1]: 3 changes [History diff]2024-12-09 08:04:02
apnadkarniplain2024-12-09 10:49:01
@gahr, made your suggested changes. Please test.
gahrplain2024-12-09 13:50:32
Works, thanks!
apnadkarni Closed ticket [1dc7f3e5f1]. [History diff]2024-12-10 02:35:54
Log in (anonymous is fine) to add a comment.