Ian Abbott
2017-06-30 13:28:49 UTC
Hi folks,
I know there were changes to do with links to directories in v2017.07.0,
but this looks like a bug in readlink with the -f option:
***@fred:/ ls -l /mnt/root
lrwxrwxrwx 7 bin -> usr/bin
drwxr-xr-x 304 boot
drwxr-xr-x 160 dev
drwxr-xr-x 1920 etc
drwxrwsr-x 160 home
lrwxrwxrwx 7 lib -> usr/lib
drwxr-xr-x 160 mnt
dr-xr-xr-x 160 proc
drwx------ 160 root
drwxr-xr-x 160 run
lrwxrwxrwx 8 sbin -> usr/sbin
drwxr-xr-x 224 srv
drwxr-xr-x 160 sys
drwxrwxrwt 160 tmp
drwxr-xr-x 480 usr
drwxr-xr-x 544 var
***@fred:/ readlink -f /mnt/root/lib libdir
***@fred:/ echo $libdir
/usr
(I expected $libdir to contain "/mnt/root/usr/lib" here, as it did in
barebox v2017.06.1.)
(Let's try it without the -f option....)
***@fred:/ readlink /mnt/root/lib libdir2
***@fred:/ echo $libdir2
usr/lib
(That is the same as barebox v2017.06.1.)
I know there were changes to do with links to directories in v2017.07.0,
but this looks like a bug in readlink with the -f option:
***@fred:/ ls -l /mnt/root
lrwxrwxrwx 7 bin -> usr/bin
drwxr-xr-x 304 boot
drwxr-xr-x 160 dev
drwxr-xr-x 1920 etc
drwxrwsr-x 160 home
lrwxrwxrwx 7 lib -> usr/lib
drwxr-xr-x 160 mnt
dr-xr-xr-x 160 proc
drwx------ 160 root
drwxr-xr-x 160 run
lrwxrwxrwx 8 sbin -> usr/sbin
drwxr-xr-x 224 srv
drwxr-xr-x 160 sys
drwxrwxrwt 160 tmp
drwxr-xr-x 480 usr
drwxr-xr-x 544 var
***@fred:/ readlink -f /mnt/root/lib libdir
***@fred:/ echo $libdir
/usr
(I expected $libdir to contain "/mnt/root/usr/lib" here, as it did in
barebox v2017.06.1.)
(Let's try it without the -f option....)
***@fred:/ readlink /mnt/root/lib libdir2
***@fred:/ echo $libdir2
usr/lib
(That is the same as barebox v2017.06.1.)
--
-=( Ian Abbott @ MEV Ltd. E-mail: <***@mev.co.uk> )=-
-=( Web: http://www.mev.co.uk/ )=-
-=( Ian Abbott @ MEV Ltd. E-mail: <***@mev.co.uk> )=-
-=( Web: http://www.mev.co.uk/ )=-