diff options
author | WlodekM <[email protected]> | 2025-02-15 14:44:14 +0200 |
---|---|---|
committer | WlodekM <[email protected]> | 2025-02-15 14:44:14 +0200 |
commit | 6ed3eeba2db2c596903204ecc11a0b1c701c56af (patch) | |
tree | 8b0d1e8c9babd019c79945d281f451f59acafd46 /progs/shel | |
parent | beb8d507d2f2a024839efa91aaedad4100759039 (diff) |
fix shel
Diffstat (limited to 'progs/shel')
-rw-r--r-- | progs/shel/shel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/progs/shel/shel.c b/progs/shel/shel.c index 7e8c310..dc51a92 100644 --- a/progs/shel/shel.c +++ b/progs/shel/shel.c @@ -105,6 +105,7 @@ int main() { continue; } + chdir(path); __pid_t forkResult = fork(); if (forkResult == 0) { execve(command, argv, 0); |