diff --git a/fs/fs.c b/fs/fs.c index 4563a8126..32dba8cf0 100644 --- a/fs/fs.c +++ b/fs/fs.c @@ -579,6 +579,8 @@ int chdir(const char *pathname) if (ret) goto out; + automount_mount(p, 0); + strcpy(cwd, p); out: