#923425 Chase gives incorrect file path

Package:
chase
Source:
chase
Description:
Follow a symlink and print out its target file
Submitter:
Nick Taylor
Date:
2024-12-04 04:15:01 UTC
Severity:
normal
Tags:
#923425#5
Date:
2019-02-27 19:11:43 UTC
From:
To:
When the link is in a different folder than the target file, the
resultant path to the target file given by chase turns out to be incorrect.
Here is a transcript:

In this example, the files are located in the folder /media/MyBook/Hostshare/GIFS
The links are located in the folder  /media/MyBook/Hostshare/GIFS

cd /media/MyBook/Hostshare/GIFS/GIFLINKS
/media/MyBook/Hostshare/GIFS/GIFLINKS$ chase achtagDu6Blo
chase: /media/MyBook/Hostshare/GIFS/GIFLINKS/IJa7b9jy.gif: No such file or directory

The filename IJa7b9jy.gif does exist in the folder /media/MyBook/Hostshare/GIFS, but
not in  /media/MyBook/Hostshare/GIFS/GIFLINKS

I am using Debian GNU/Linux 9.7 (stretch) kernel 4.9.0-8-amd64 and (Debian GLIBC 2.24-11+deb9u3) 2.24

#923425#10
Date:
2019-02-28 12:56:59 UTC
From:
To:
The statement:

The links are located in the folder  /media/MyBook/Hostshare/GIFS

needs to be corrected to say

The links are located in the folder  /media/MyBook/Hostshare/GIFS/GIFLINKS

Thanks
Nick Taylor

#923425#15
Date:
2024-12-04 04:11:53 UTC
From:
To:
# tree /media
/media
└── MyBook
    └── Hostshare
        └── GIFS
            ├── GIFLINKS
            │   └── achtagDu6Blo -> ../IJa7b9jy.gif
            └── IJa7b9jy.gif

5 directories, 2 files
# chase achtagDu6Blo
/media/MyBook/Hostshare/GIFS/IJa7b9jy.gif

# tree /media
/media
└── MyBook
    └── Hostshare
        └── GIFS
            ├── GIFLINKS
            │   └── achtagDu6Blo -> /media/MyBook/Hostshare/GIFS/IJa7b9jy.gif
            └── IJa7b9jy.gif

5 directories, 2 files
# chase achtagDu6Blo
/media/MyBook/Hostshare/GIFS/IJa7b9jy.gif