Displaying 1 result from an estimated 1 matches for "jpic".
Did you mean:
apic
2004 Feb 21
0
Solaris interposer code for nsswitch.conf
...m.
ps I'm not a C coder so this may not be the best in the world - if anyone
can do it better then please fix and post to the list.
/*
* Intercept open() call so that rather than using /etc/nsswitch.conf,
* a different file can be used. Build as follows:
* cc -o nsswitch_interposer.so -G -Jpic nsswitch_interposer.c
* setenv LD_PRELOAD $cwd/nsswitch_interposer.so
* run smbd
*
* Remove the printf statements in each function when using in earnest -
they are just there for debugging.
*/
#include <stdio.h>
#include <strings.h>
#include <dlfcn.h>
FILE* fopen(const char...