Atomically create API file #7227
Labels
exp/intermediate
Prior experience is likely helpful
help wanted
Seeking public contribution on this issue
kind/bug
A bug in existing code (including security flaws)
P2
Medium: Good to have, but can wait until someone steps up
topic/daemon + init
We should:
IPFS_HOME/api
file to ensure we never leave an empty/corrupt one behind. The relevant code is in the SetAPIAddr function in repo/fsrepo/fsrepo.go. We should create a temporary file, write to the temporary file, then atomically rename to "api".Reported on the forums: https://discuss.ipfs.io/t/error-multiaddr-must-start-with-a/7824
The text was updated successfully, but these errors were encountered: