https://github.com/vi/fopen_override
LD_PRELOAD-based fopen/open filename overrider
https://github.com/vi/fopen_override
Last synced: about 1 year ago
JSON representation
LD_PRELOAD-based fopen/open filename overrider
- Host: GitHub
- URL: https://github.com/vi/fopen_override
- Owner: vi
- License: mit
- Created: 2014-09-12T01:02:54.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2023-03-25T19:53:29.000Z (over 3 years ago)
- Last Synced: 2025-04-15T14:13:27.598Z (about 1 year ago)
- Language: C
- Size: 10.7 KB
- Stars: 10
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
fopen_override
==============
LD_PRELOAD-based fopen/open filename overrider
Example:
LD_PRELOAD=libfopen_override.so FOPEN_OVERRIDE=/etc/ppp/chap-secrets=/root/encfs/chap-secrets pppd ...
Non-working example:
LD_PRELOAD=libfopen_override.so FOPEN_OVERRIDE=/etc/resolv.conf=/tmp/tmpresolv.conf ping google.com
Tricky example:
LD_PRELOAD=libfopen_override.so FOPEN_OVERRIDE='debug,noabs,qqq1=www1,../filename\,with\,comma=../filename\=with\=eqsign' program [args...]