git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git://cadel.mutabah.net/acess2
[tpg/acess2.git]
/
KernelLand
/
Kernel
/
vfs
/
open.c
diff --git
a/KernelLand/Kernel/vfs/open.c
b/KernelLand/Kernel/vfs/open.c
index
748d0f7
..
f1a16f3
100644
(file)
--- a/
KernelLand/Kernel/vfs/open.c
+++ b/
KernelLand/Kernel/vfs/open.c
@@
-706,7
+706,8
@@
int VFS_OpenInode(Uint32 Mount, Uint64 Inode, int Mode)
// Does the filesystem support this?
if( !mnt->Filesystem->GetNodeFromINode ) {
// Does the filesystem support this?
if( !mnt->Filesystem->GetNodeFromINode ) {
- LOG("Filesystem does not support inode accesses");
+ Log_Notice("VFS", "Filesystem '%s' does not support inode accesses",
+ mnt->Filesystem->Name);
errno = ENOENT;
LEAVE_RET('i', -1);
}
errno = ENOENT;
LEAVE_RET('i', -1);
}
@@
-810,7
+811,10
@@
int VFS_DuplicateFD(int SrcFD, int DstFD)
int VFS_SetFDFlags(int FD, int Mask, int Value)
{
tVFS_Handle *h = VFS_GetHandle(FD);
int VFS_SetFDFlags(int FD, int Mask, int Value)
{
tVFS_Handle *h = VFS_GetHandle(FD);
- if(!FD) return -1;
+ if(!h) {
+ errno = EBADF;
+ return -1;
+ }
int ret = h->Mode;
Value &= Mask;
int ret = h->Mode;
Value &= Mask;
UCC
git Repository :: git.ucc.asn.au