syscalls: fchmodat

This commit is contained in:
Matheus
2022-10-16 13:14:00 -03:00
parent e7f72d3883
commit b94d37cade
8 changed files with 109 additions and 7 deletions
+2 -4
View File
@@ -6,8 +6,6 @@
#include <arch/spinlock.h>
#include <string.h>
#define AT_FDCWD -100
syscallret syscall_fstatat(int ifd, char* path, stat* st, int flags){
syscallret retv;
retv.ret = -1;
@@ -67,13 +65,13 @@ syscallret syscall_fstatat(int ifd, char* path, stat* st, int flags){
vfs_close(node);
retv.ret = 0;
_fail:
if(ifd != AT_FDCWD)
fd_release(fd);
retv.ret = 0;
return retv;
}