summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/rpcclient/display.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/rpcclient/display.c b/source3/rpcclient/display.c
index e9875d0c88..ddbe435d75 100644
--- a/source3/rpcclient/display.c
+++ b/source3/rpcclient/display.c
@@ -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;
}