How can I change directory in C without resolving symlinks?

146 views Asked by At

I'm trying to create a C program that emulates a Bash shell.

For the cd file instruction I use chdir("file") but it isn't correct because chdir() always resolves symlinks while cd doesn't by default.

I'm looking for a way to get a function that changes the current working directory without resolving symlinks.

0

There are 0 answers