Segmentation fault on trailing slashes
$ mkdir from to
$ cd to
$ ln -s x ../from/a
$ lndir ../from
$ ln -sf x// ../from/a
$ lndir ../from
Segmentation fault (core dumped)
equivalent
dereferences p
which is NULL:
(gdb) bt
#0 equivalent (lname=0x7fffffffa920 "x/", rname=rname@entry=0x7fffffff9910 "x", p=0x0) at lndir.c:128
#1 dodir (fn=fn@entry=0x7fffffffc174 "../from", fs=fs@entry=0x7fffffffb960, ts=ts@entry=0x7fffffffb9f0, rel=rel@entry=0) at lndir.c:263
#2 main (argc=1, argv=0x7fffffffbba0) at lndir.c:375