mirror of
https://github.com/FAUSheppy/colorredstderr-mirror
synced 2025-12-09 16:38:32 +01:00
Install libcoloredstderr.so read-only.
Prevents accidental truncates of libcoloredstderr.so with `cp` which crash all programs which have loaded it.
This commit is contained in:
5
README
5
README
@@ -51,6 +51,11 @@ inconsistent state causing a segmentation fault when using any functions of
|
||||
the library. Just remove the file first and then copy it. `make install`
|
||||
handles the install in this way and is therefore not affected.
|
||||
|
||||
As a simple safeguard, `make` builds and installs the `libcoloredstderr.so`
|
||||
file non-writable to prevent accidental overwrites. Even if the overwrite is
|
||||
forced with `cp -f`, the file is unlinked and recreated by `cp` because the
|
||||
file is non-writable, preventing the problem.
|
||||
|
||||
|
||||
USAGE
|
||||
-----
|
||||
|
||||
Reference in New Issue
Block a user