Skip to content

Conversation

@musalbas
Copy link
Contributor

Addresses #6702 and #6701.

This pull request creates a new source file for test utils, and moves GetTempPath() from util to testutil.

This is because per the above issues, GetTempPath() is insecure and has unchecked error conditions, making it unsuitable for use in production code. GetTempPath() is only used in the unit tests and not used anywhere in the main code, so it would be a good idea to move this to the test suite so that no one tries to use this in the future and it's not mixed with production code.

@jonasschnelli
Copy link
Contributor

Nice!
utACK.

@musalbas musalbas force-pushed the patch-gettemppath branch from 3a87cd5 to 2fdaa25 Compare March 11, 2016 15:05
@musalbas
Copy link
Contributor Author

Fixed Windows build error. The build passes now.

@paveljanik
Copy link
Contributor

ACK

@maflcko
Copy link
Member

maflcko commented Mar 11, 2016

utACK 2fdaa25

@laanwj
Copy link
Member

laanwj commented Mar 14, 2016

Yes, makes sense, utACK 2fdaa25

@laanwj laanwj merged commit 2fdaa25 into bitcoin:master Mar 14, 2016
laanwj added a commit that referenced this pull request Mar 14, 2016
2fdaa25 Move GetTempPath() to testutil. (Mustafa)
393b22e Add a source file for unit test utils. (Mustafa)
codablock pushed a commit to codablock/dash that referenced this pull request Dec 19, 2017
2fdaa25 Move GetTempPath() to testutil. (Mustafa)
393b22e Add a source file for unit test utils. (Mustafa)
zkbot added a commit to zcash/zcash that referenced this pull request Oct 26, 2020
Lightweight abstraction of boost::filesystem

This is a refactor backport ahead of replacing most of our Boost dependencies with C++17 code.

Cherry-picked from the following upstream PRs:
- bitcoin/bitcoin#7667
  - Removes merge conflicts.
- bitcoin/bitcoin#9902
- bitcoin/bitcoin@2300a5e
- bitcoin/bitcoin#10546
  - Only the changes to `src/fs.cpp`
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants