diff --git a/kthd/src/chdir.c b/kthd/src/chdir.c index 9504e51..6f453df 100644 --- a/kthd/src/chdir.c +++ b/kthd/src/chdir.c @@ -67,13 +67,13 @@ void kthdChdir(ChdirCommand *cmd) { struct stat st; if(stat(cmd->path, &st)) { cmd->header.header.status = -1*errno; - luxSendLumen(cmd); + luxSendKernel(cmd); return; } if((st.st_mode & S_IFMT) != S_IFDIR) { cmd->header.header.status = -ENOTDIR; - luxSendLumen(cmd); + luxSendKernel(cmd); return; } @@ -89,5 +89,5 @@ void kthdChdir(ChdirCommand *cmd) { // success, clean up the path clean(cmd->path); - luxSendLumen(cmd); + luxSendKernel(cmd); } \ No newline at end of file diff --git a/kthd/src/exec.c b/kthd/src/exec.c index c68f14f..2306438 100644 --- a/kthd/src/exec.c +++ b/kthd/src/exec.c @@ -21,7 +21,7 @@ void kthdExec(ExecCommand *cmd) { int fd = open(cmd->path, O_RDONLY); if(fd < 0) { cmd->header.header.status = -ENOENT; - luxSendLumen(cmd); + luxSendKernel(cmd); return; } @@ -30,7 +30,7 @@ void kthdExec(ExecCommand *cmd) { if(fstat(fd, &st)) { close(fd); cmd->header.header.status = -1*errno; - luxSendLumen(cmd); + luxSendKernel(cmd); return; } @@ -45,7 +45,7 @@ void kthdExec(ExecCommand *cmd) { if(cmd->header.header.status) { close(fd); - luxSendLumen(cmd); + luxSendKernel(cmd); return; } @@ -56,7 +56,7 @@ void kthdExec(ExecCommand *cmd) { if(!res) { close(fd); cmd->header.header.status = -ENOMEM; - luxSendLumen(cmd); + luxSendKernel(cmd); return; } @@ -66,13 +66,13 @@ void kthdExec(ExecCommand *cmd) { close(fd); free(res); cmd->header.header.status = -1*errno; - luxSendLumen(cmd); + luxSendKernel(cmd); return; } // and relay the response res->header.header.length += st.st_size; res->header.header.status = 0; - luxSendLumen(res); + luxSendKernel(res); free(res); } \ No newline at end of file