invalid symlinks created when destination directory is a symlink
By Paolo Bonzini - Posted on November 28th, 2011
| Project: | GNU Smalltalk |
| Component: | Base classes |
| Category: | bug |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
$ mkdir t1 $ mkdir t1/t2 $ ln -sf t1/t2 t2 $ ./gst GNU Smalltalk ready
st> (File name: 'XSL.star') symlinkAs: 't2/XSL.star' <File /home/pbonzini/devel/gst/+build/XSL.star> st> ^Z $ ls -l t2/ total 0
Reported by Jan Luebbe.
lrwxrwxrwx 1 pbonzini pbonzini 11 Nov 28 17:59 XSL.star -> ../XSL.star
The right path should be ../../XSL.star (because the symlink is from t1/t2/XSL.star).
