From 4e15be9cf1378149688f7a2744c1fe36a7f54f7e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 16 Jan 2000 13:17:05 +0000 Subject: fixed some typos in access_table() which, amaziingly enough, make no difference to the result. (This used to be commit 9e28b7220bc293e386fec30c2d2e7e401b61b1f7) --- source3/smbd/open.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/smbd') diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 8a30f5e5c3..57fbdb24c4 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -647,11 +647,11 @@ static int access_table(int new_deny,int old_deny,int old_mode, if (new_deny == DENY_ALL || old_deny == DENY_ALL) return(AFAIL); if (same_pid) { - if (isexe && old_mode == O_RDONLY && + if (isexe && old_mode == DOS_OPEN_RDONLY && old_deny == DENY_DOS && new_deny == DENY_READ) { return AFAIL; } - if (!isexe && old_mode == O_RDONLY && + if (!isexe && old_mode == DOS_OPEN_RDONLY && old_deny == DENY_DOS && new_deny == DENY_DOS) { return AREAD; } @@ -660,7 +660,7 @@ static int access_table(int new_deny,int old_deny,int old_mode, if (old_mode == DOS_OPEN_RDONLY) return AFAIL; return AALL; } - if (old_mode == O_RDONLY && old_deny == DENY_DOS) { + if (old_mode == DOS_OPEN_RDONLY && old_deny == DENY_DOS) { if (new_deny == DENY_FCB || new_deny == DENY_READ) { if (isexe) return AREAD; return AFAIL; -- cgit