# Pastebin GubDCCNh #include #include ///#include void this_fails() { char *res = realpath("/home/sascha", NULL); // res = realpath("/home/sascha", (char*) NULL); printf("res: %s\n", res); } void this_works() { //char buf[PATH_MAX+1]; char buf[4096+1]; char *res = realpath("/home/sascha", buf); printf("res: %s\n", res); printf("buf: %s\n", buf); } int main(int argc, char *argv[]) { char *env = getenv("LD_PRELOAD"); printf("LD_PRELOAD: %s\n", env); //printf("glibc version: %s\n", gnu_get_libc_version()); this_works(); this_fails(); }