Since #10885, bitcoind is expected to reject symlinks to wallets. This behaviour is also intended to be tested in the following test:https://github.com/bitcoin/bitcoin/blob/86528937e5c4da2e12c46085fc41e87ed759258e/test/functional/wallet_multiwallet.py#L168-L170
However, this is not the case:
$ ls -l ~/.bitcoin/regtest/wallets/
total 3
drwx------ 2 hebasto hebasto 3 Feb 11 14:49 w8
lrwxrwxrwx 1 hebasto hebasto 41 Feb 11 14:11 w8_symlink_abs -> /home/hebasto/.bitcoin/regtest/wallets/w8
lrwxrwxrwx 1 hebasto hebasto 2 Feb 11 14:31 w8_symlink_rel -> w8
$ ./build/src/bitcoind -regtest -wallet=w8_symlink_abs
$ ./build/src/bitcoin-cli -regtest listwallets
[
"w8_symlink_abs"
]
$ ./build/src/bitcoind -regtest -wallet=w8_symlink_rel
$ ./build/src/bitcoin-cli -regtest listwallets
[
"w8_symlink_rel"
]