Fix login.

This commit is contained in:
Enrico Fraccaroli
2021-12-17 00:49:17 +01:00
parent a0dbeb1527
commit 11f485cf77
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -332,7 +332,7 @@ static int __cd(int argc, char *argv[])
return 1;
}
// Set current working directory.
fchdir(fd);
chdir(path);
close(fd);
// Get the updated working directory.
char cwd[PATH_MAX];