Hi, I noticed that realpath is no longer working after chroot is called. With the example from below I get the following output with musl 1.1.23: # ./a.out / No such file or directory With glibc it is working as I would expect: # ./a.out / / #include #include #include #include #include #include int main() { char *p = realpath("/", NULL); if (!p) { printf("%s\n", strerror(errno)); } else { printf("%s\n", p); free(p); } if (chroot("/tmp") == -1) printf("chroot failed\n"); p = realpath("/", NULL); if (!p) { printf("%s\n", strerror(errno)); } else { printf("%s\n", p); free(p); } return 0; } Kind regards, Reiner