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:
0$ ls -l ~/.bitcoin/regtest/wallets/
1total 3
2drwx------ 2 hebasto hebasto 3 Feb 11 14:49 w8
3lrwxrwxrwx 1 hebasto hebasto 41 Feb 11 14:11 w8_symlink_abs -> /home/hebasto/.bitcoin/regtest/wallets/w8
4lrwxrwxrwx 1 hebasto hebasto 2 Feb 11 14:31 w8_symlink_rel -> w8
5$ ./build/src/bitcoind -regtest -wallet=w8_symlink_abs
6$ ./build/src/bitcoin-cli -regtest listwallets
7[
8 "w8_symlink_abs"
9]
10$ ./build/src/bitcoind -regtest -wallet=w8_symlink_rel
11$ ./build/src/bitcoin-cli -regtest listwallets
12[
13 "w8_symlink_rel"
14]