proot-me / proot

chroot, mount --bind, and binfmt_misc without privilege/setup for Linux
https://proot-me.github.io
GNU General Public License v2.0
1.96k stars 369 forks source link

Fix basename include in cli.c #378

Open youbitchoc opened 4 months ago

youbitchoc commented 4 months ago

according to posix, basename(3) should be included from libgen.h and not string.h

this fixes a segfault on alpine due to basename being implicitly declared.