From 2513cd5f17f7d1d40cbf8afc816b8a3994712bef Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 16 Jan 2000 12:24:01 +0000 Subject: use GET_DENY_MODE() macro instead of the bit shift (This used to be commit d72c98a931ff05a7f8b74b98cd7ebd025a87d249) --- source3/rpcclient/display.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source3') 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; } -- cgit