Commit ca6be53
authored
Avoid making builddir read-only
When using e.g. `--stop=patch` the log directory will be inside the build directory. When `--read-only-installdir` is set the log directory and the build directory itself will be read-only which is not what the option intended:
The `ensure_writable_log_dir` function changes the permissions of the folder containing the log directory to writeable without checking if this is required. When supposedly reverting it any write permissions will be removed even if they have been there before.
Similar the write permissions of the log directory are removed even when the installation was stopped.
This adds the neccessary checks.1 parent d2e37b5 commit ca6be53
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4324 | 4324 | | |
4325 | 4325 | | |
4326 | 4326 | | |
4327 | | - | |
| 4327 | + | |
4328 | 4328 | | |
4329 | 4329 | | |
4330 | 4330 | | |
| |||
4405 | 4405 | | |
4406 | 4406 | | |
4407 | 4407 | | |
4408 | | - | |
| 4408 | + | |
4409 | 4409 | | |
4410 | 4410 | | |
4411 | 4411 | | |
| |||
0 commit comments