Messages in this thread | | | Date | Tue, 30 Nov 2004 07:43:56 -0800 (PST) | From | Linus Torvalds <> | Subject | Re: [BUG ?] smbfs open always succeeds |
| |
On Tue, 30 Nov 2004 tvrtko.ursulin@sophos.com wrote: > > I investigated a bit and found a nfs_open function at > linux-2.6.9/fs/nfs/inode.c line 906 which also always returns 0. So is > this a network filesystem way of handling opens and not a bug after all? I > am not sure though that both nfs and smbfs operate in the same way and am > not claiming that.
Many networked filesystems end up doing most of the _real_ permissions checking at IO time, not opens. That said, "open()" should return definitive errors as early as possible, but sometimes you really have the case that the real error only happens when you try to read or write something.
Not saying that smbfs is right, just explaining that it _might_ be right.
Urban, did you see the thread?
Linus - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |