Skip to content

Commit c345148

Browse files
committed
Merge #12322: Docs: Remove step making cloned repository world-writable for Windows build.
eeeb416 Remove suggestion to make cloned repository world-writable for Windows build. (murrayn) Pull request description: Current documentation for Windows build on Ubuntu suggests cloning the repository into /usr/src, as root, and making the tree world-writable(!). I can see no problem this solves, and it introduces obvious security issues. Tree-SHA512: 05429a64319c046f5506f7d27c64c94f94cfe6d14ec5f01dccf843fc417e954fe96e1abc43126b9204a1178f101e4a8da9eece32b5de4b348c7c9358615c7e0f
2 parents 9a32114 + eeeb416 commit c345148

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

doc/build-windows.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,9 @@ Note that for WSL the Bitcoin Core source path MUST be somewhere in the default
102102
example /usr/src/bitcoin, AND not under /mnt/d/. If this is not the case the dependency autoconf scripts will fail.
103103
This means you cannot use a directory that located directly on the host Windows file system to perform the build.
104104

105-
The next three steps are an example of how to acquire the source in an appropriate way.
105+
Acquire the source in the usual way:
106106

107-
cd /usr/src
108-
sudo git clone https://github.com/bitcoin/bitcoin.git
109-
sudo chmod -R a+rw bitcoin
107+
git clone https://github.com/bitcoin/bitcoin.git
110108

111109
Once the source code is ready the build steps are below.
112110

@@ -132,11 +130,9 @@ Note that for WSL the Bitcoin Core source path MUST be somewhere in the default
132130
example /usr/src/bitcoin, AND not under /mnt/d/. If this is not the case the dependency autoconf scripts will fail.
133131
This means you cannot use a directory that located directly on the host Windows file system to perform the build.
134132

135-
The next three steps are an example of how to acquire the source in an appropriate way.
133+
Acquire the source in the usual way:
136134

137-
cd /usr/src
138-
sudo git clone https://github.com/bitcoin/bitcoin.git
139-
sudo chmod -R a+rw bitcoin
135+
git clone https://github.com/bitcoin/bitcoin.git
140136

141137
Then build using:
142138

0 commit comments

Comments
 (0)