diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-01-16 13:17:05 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-01-16 13:17:05 +0000 |
commit | 4e15be9cf1378149688f7a2744c1fe36a7f54f7e (patch) | |
tree | f010f91b752c14abec0b7b23e4692963f817160e /source3 | |
parent | 62b02ca2e277e45a5b0377710dfa5f13ae58f0b6 (diff) | |
download | samba-4e15be9cf1378149688f7a2744c1fe36a7f54f7e.tar.gz samba-4e15be9cf1378149688f7a2744c1fe36a7f54f7e.tar.bz2 samba-4e15be9cf1378149688f7a2744c1fe36a7f54f7e.zip |
fixed some typos in access_table() which, amaziingly enough, make no
difference to the result.
(This used to be commit 9e28b7220bc293e386fec30c2d2e7e401b61b1f7)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/open.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |