hi,

On Thu, Jun 23, 2016, at 13:54, Simon McVittie wrote:
> OK. So are you thinking of something like this pseudocode?

Almost.  See below.


>         if lstat(path) says it's a symlink:

s/if/while/  (plus a recursion depth check).

ie: if the file that we get back is also a symlink, keep going, but
never check directories.

Implementation quibble: just readlink() and if that fails, it's
obviously not.

Allison
_______________________________________________
xdg mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/xdg

Reply via email to