1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

use GET_DENY_MODE() macro instead of the bit shift

This commit is contained in:
Andrew Tridgell 0001-01-01 00:00:00 +00:00
parent ab492d4694
commit d72c98a931

View File

@ -30,15 +30,14 @@ char *get_file_mode_str(uint32 share_mode)
{
static fstring mode;
switch ((share_mode>>4)&0xF)
switch (GET_DENY_MODE(share_mode))
{
case DENY_NONE : fstrcpy(mode, "DENY_NONE "); break;
case DENY_ALL : fstrcpy(mode, "DENY_ALL "); break;
case DENY_DOS : fstrcpy(mode, "DENY_DOS "); break;
case DENY_READ : fstrcpy(mode, "DENY_READ "); break;
case DENY_WRITE: fstrcpy(mode, "DENY_WRITE "); break;
case DENY_FCB:
case 0xFF: fstrcpy(mode, "DENY_FCB "); break;
case DENY_FCB: fstrcpy(mode, "DENY_FCB "); break;
default : fstrcpy(mode, "DENY_???? "); break;
}