1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

fixed some typos in access_table() which, amaziingly enough, make no

difference to the result.
(This used to be commit 9e28b7220b)
This commit is contained in:
Andrew Tridgell 2000-01-16 13:17:05 +00:00
parent 62b02ca2e2
commit 4e15be9cf1

View File

@ -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;