# Pastebin wyZvthyv #include #include void this_fails() { char *res = realpath("/home/sascha", 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); this_works(); this_fails(); }