Fwd: find and symlinks

Judson Lester nyarly at gmail.com
Wed Sep 23 19:57:34 UTC 2020


If I use `-type l` the output is like
/foo/bar/baz
/foo/bar/..data
on my laptop as well - I assume that on Kubernetes, "data" would be
expanded to a date again.

findutils find does not print the "/..data" entry; I can't find any reason
it would correctly be included.

On Tue, Sep 22, 2020 at 3:39 PM Markus Gothe <nietzsche at lysator.liu.se>
wrote:

> Hi,
> couldn't find (pun intended) anything related to this in the changelog.
>
> As you might have guessed already the best thing to see if this is related
> to busybox or not, is to run the same version as you do on your local
> workstation.
>
> Containers are kinda creepy since they may exposé a different filesystem
> within themselves.
>
> If you don't have a bug in latest busybox on your local workstation but
> the latest busybox gives an error within you container, I'd say it's not a
> bug per se in busybox. Or, worse, if there is an error; it's interesting
> to find the root cause of the different behaviors. How is the 'findutils'
> "find" behaving in the same environment? What filesystem is used?
>
> //Markus
>
> Sent from my BlackBerry - the most secure mobile device
> *From:* nyarly at gmail.com
> *Sent:* September 23, 2020 00:12
> *To:* busybox at busybox.net
> *Subject:* Fwd: find and symlinks
>
>
> I'm having a weird issue with find outputting strange paths when there are
> symlinks in the directory.
>
> In a directory /foo/bar with a link "baz" to "..data/baz", `find /foo/bar
> -type f` outputs something like
> /foo/bar/..2020_09_21_21_23_25.153608192/baz
>
> find /foo/bar without predicates returns
> /foo/bar/baz # <- this is what I'm trying to get
> /foo/bar/..data # <- not these
> /foo/bar/..data/baz # <-/
>
> This is happening in a container on Kubernetes, with busybox 1.30. I don't
> have this problem on my local workstation, without docker involvement but
> busybox 1.31.
> Is this a known issue?
> --
> Judson Lester
> nyarly at gmail.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20200923/a1fe9d45/attachment.html>


More information about the busybox mailing list