summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-12-08 19:45:22 +0100
committerAnton Kling <anton@kling.gg>2024-12-08 19:45:22 +0100
commit1d2c7ff3548c39c47b0d92a2928d8595f17a66c3 (patch)
tree79aa2871ffea1e918da4812aefc56b0b48d6645e
parenta7ef3d06f74c8131b04b41cdf902e3c59f61769f (diff)
vfs: Bug fix...
The commit is self explanatory. It was a simple mistype that went unnoticed for a while.
-rw-r--r--kernel/fs/vfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fs/vfs.c b/kernel/fs/vfs.c
index 3b912ce..7e23870 100644
--- a/kernel/fs/vfs.c
+++ b/kernel/fs/vfs.c
@@ -432,7 +432,7 @@ int vfs_write(int fd, const char *buf, u64 count) {
if (!fd_ptr) {
return -EBADF;
}
- if (fd_ptr->mode & O_APPEND) {
+ if (fd_ptr->flags & O_APPEND) {
vfs_lseek(fd, 0, SEEK_END);
}
int rc = vfs_pwrite(fd, (char *)buf, count, fd_ptr->offset);