diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-01-16 12:24:01 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-01-16 12:24:01 +0000 |
commit | 2513cd5f17f7d1d40cbf8afc816b8a3994712bef (patch) | |
tree | 44c88aedb6d53765de35a63d0c0bce34f288b8e0 | |
parent | 48ff3b95a444c353ea6374479a32b1764afb4f56 (diff) | |
download | samba-2513cd5f17f7d1d40cbf8afc816b8a3994712bef.tar.gz samba-2513cd5f17f7d1d40cbf8afc816b8a3994712bef.tar.bz2 samba-2513cd5f17f7d1d40cbf8afc816b8a3994712bef.zip |
use GET_DENY_MODE() macro instead of the bit shift
(This used to be commit d72c98a931ff05a7f8b74b98cd7ebd025a87d249)
-rw-r--r-- | source3/rpcclient/display.c | 5 |
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; } |