2 minor findings
Earlier concerns neither republished nor resolved: 3 suggestions. See the Run archive for their assessments.
Findings
[minor] · An onboarded default data directory now needs a writable parent
A writable, onboarded default directory under a non-writable parent now forces onboarding that cannot finish without changing the launch or directory; no affected installation was identified.
Location: qml/onboarding_settings.cpp:1053 (head).
Details and suggested fix
ResolveOnboardingStartupStatus now calls ValidateCustomDataDir for the resolved default directory when -datadir is not explicit. That validator checks parent writability even after confirming that the existing target is accessible and writable. For example, a usable ~/.bitcoin under a searchable but read-only $HOME now forces onboarding despite qml_onboarded=true. Preview repeats the validation, and its error prevents canFinish() from becoming true. Previously, the startup chooser check exempted the default directory; non-default directories already had this restriction. The user can recover by changing permissions, selecting another directory, or supplying an explicit -datadir to skip onboarding for the already-onboarded profile. Check only the target's accessibility and writability when it exists, and require a writable parent only when creating it. Add a regression for an onboarded default directory under a searchable, non-writable parent.
[minor] · The early directory lock runs before the blocks directory is validated
An invalid -blocksdir now makes startup try to create and lock .lock in the working directory before rejecting the option, potentially replacing the useful directory error with a permissions error.
Location: qml/bitcoin.cpp:690 (head).
Details and suggested fix
After InitConfig, prepare_node now calls AppInitLockDirectories() before node->baseInitialize(). In the pinned Core, a nonexistent or non-directory -blocksdir makes GetBlocksDirPath() return an empty path. Once the data-directory lock succeeds, the lock helper appends .lock to that empty path and opens it relative to the working directory. Previously, AppInitParameterInteraction rejected the blocks directory before any lock attempt. Startup still fails, but it can now leave a stray .lock outside the profile. If that file cannot be opened for writing, startup instead reports Cannot write to directory ''; check permissions. Before the early lock, reject an empty or non-directory gArgs.GetBlocksDirPath() with Core's existing blocks-directory error, while retaining early locking for valid profiles.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [suggestion]: Explicit listen-off choices are elided when onboarding enables a proxy (earlier report)
- [suggestion]: Settings-file recovery also resets unrelated GUI preferences (earlier report)
- [suggestion]: New-folder preview skips an explicit relative configuration file (earlier report)