WSL icon indicating copy to clipboard operation
WSL copied to clipboard

ls does not follow symlinks if symlink argument(s) are terminated by slash

Open christoh opened this issue 10 years ago • 2 comments

Ubuntu 14.04 LTS Linux Kernel:

[root@vz1 ~] # ls -laF /var/lock
lrwxrwxrwx 1 root root 9 Jun 28  2015 /var/lock -> /run/lock/
[root@vz1 ~] # ls -laF /var/lock/
total 0
drwxrwxrwt  2 root root  40 Feb 23 02:58 ./
drwxr-xr-x 19 root root 620 Jun 18 16:23 ../
[root@vz1 ~] #

Ubuntu 14.04 LTS with WSL 14367:

[root@xeon1 ~] # ls -laF /var/lock
lrwxrwxrwx 1 root root 9 Mar 23 21:41 /var/lock -> /run/lock/
[root@xeon1 ~] # ls -laF /var/lock/
lrwxrwxrwx 1 root root 9 Mar 23 21:41 /var/lock/ -> /run/lock/
[root@xeon1 ~] #

christoh avatar Jun 18 '16 15:06 christoh

Thank you for reporting. There was an issue with trailing slash handling that has been fixed internally and will be an Insider build soon. Keep an eye out for our release notes.

benhillis avatar Jun 20 '16 18:06 benhillis

Fixed in 14371

christoh avatar Jun 22 '16 19:06 christoh