diff options
author | Anton Kling <anton@kling.gg> | 2024-02-21 00:14:29 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-02-21 00:14:29 +0100 |
commit | 8ff63b062d724826d8017504063df9b92f8e6703 (patch) | |
tree | 03bf0b5a278a4908da8912f956e5651bea9412f1 /kernel/syscalls/stat.c | |
parent | a85eacdd2406fede4d6ff5cb130b1758978cabb3 (diff) |
New clang-format options
Diffstat (limited to 'kernel/syscalls/stat.c')
-rw-r--r-- | kernel/syscalls/stat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/syscalls/stat.c b/kernel/syscalls/stat.c index 0af2121..83ad3f0 100644 --- a/kernel/syscalls/stat.c +++ b/kernel/syscalls/stat.c @@ -6,8 +6,9 @@ int syscall_stat(SYS_STAT_PARAMS *args) { const char *pathname = copy_and_allocate_user_string(args->pathname); struct stat *statbuf = args->statbuf; int fd = vfs_open(pathname, O_READ, 0); - if (0 > fd) + if (0 > fd) { return -ENOENT; + } int rc = vfs_fstat(fd, statbuf); vfs_close(fd); return rc; |