libredirect: fix access
return type
`access` should return `int` not `int*`. Actually compiler produced identical assembly with any of those types, so by luck it "just worked".
This commit is contained in:
parent
6432f92e42
commit
b6e37c3146
@ -145,9 +145,9 @@ int stat(const char * path, struct stat * st)
|
|||||||
return __stat_real(rewrite(path, buf), st);
|
return __stat_real(rewrite(path, buf), st);
|
||||||
}
|
}
|
||||||
|
|
||||||
int * access(const char * path, int mode)
|
int access(const char * path, int mode)
|
||||||
{
|
{
|
||||||
int * (*access_real) (const char *, int mode) = dlsym(RTLD_NEXT, "access");
|
int (*access_real) (const char *, int mode) = dlsym(RTLD_NEXT, "access");
|
||||||
char buf[PATH_MAX];
|
char buf[PATH_MAX];
|
||||||
return access_real(rewrite(path, buf), mode);
|
return access_real(rewrite(path, buf), mode);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user