LD_ISCSI add pwrite and dlsym it at init
This commit is contained in:
committed by
Ronnie Sahlberg
parent
bd04f4bfa6
commit
f331556d65
@@ -653,6 +653,12 @@ static void __attribute__((constructor)) _init(void)
|
||||
exit(10);
|
||||
}
|
||||
|
||||
real_pwrite = dlsym(RTLD_NEXT, "pwrite");
|
||||
if (real_pwrite == NULL) {
|
||||
LD_ISCSI_DPRINTF(0,"Failed to dlsym(pwrite)");
|
||||
exit(10);
|
||||
}
|
||||
|
||||
real_dup2 = dlsym(RTLD_NEXT, "dup2");
|
||||
if (real_dup2 == NULL) {
|
||||
LD_ISCSI_DPRINTF(0,"Failed to dlsym(dup2)");
|
||||
|
||||
Reference in New Issue
Block a user