Wallet symlinks are not rejected as expected #31842

issue hebasto openend this issue on February 11, 2025
  1. hebasto commented at 3:03 pm on February 11, 2025: member

    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]
    
  2. hebasto added the label Wallet on Feb 11, 2025
  3. achow101 commented at 6:56 pm on February 11, 2025: member
    Symlink to a wallet directory is allowed, but a symlink to a wallet file is not. What you’ve tested manually is a symlink to a wallet directory, so it works.
  4. hebasto closed this on Feb 11, 2025


hebasto achow101

Labels
Wallet


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2025-02-22 06:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me