Repository navigation
Commit b30ea5e
phpize: Use cp -f when copying build files
Many PHP installations, for example Homebrew, Nix and distribution
packages, install lib/php/build/* and run-tests.php read-only. Plain cp
creates the destination with the source mode on the first phpize run. On
later runs in the same project, cp cannot open the read-only destination
for writing and fails with "Permission denied".
cp -f unlinks and recreates the destination, so it only needs write
permission on the directory, not on the target file.1 parent 39ee018 commit b30ea5e
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | | - | |
| 151 | + | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| |||
0 commit comments