diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-01-16 12:27:20 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-01-16 12:27:20 +0000 |
commit | b09e4c370e99edb8b206d601b62933b8bed45925 (patch) | |
tree | fca39e880d7cf9830636b55f7901f6778026c19f | |
parent | 446f2aef8326f41a0f56c9f2d8229413a61f1d81 (diff) | |
download | samba-b09e4c370e99edb8b206d601b62933b8bed45925.tar.gz samba-b09e4c370e99edb8b206d601b62933b8bed45925.tar.bz2 samba-b09e4c370e99edb8b206d601b62933b8bed45925.zip |
use GET_DENY_MODE() macro
(This used to be commit d9c3e0e61f315ad4d9c3ea6bb6acc8500befe6b4)
-rw-r--r-- | source3/utils/status.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/utils/status.c b/source3/utils/status.c index c7e52d1834..3f618dcd17 100644 --- a/source3/utils/status.c +++ b/source3/utils/status.c @@ -108,13 +108,12 @@ static void print_share_mode(share_mode_entry *e, char *fname) if (Ucrit_checkPid(e->pid)) { printf("%-5d ",(int)e->pid); - switch ((e->share_mode>>4)&0xF) { + switch (GET_DENY_MODE(e->share_mode)) { case DENY_NONE: printf("DENY_NONE "); break; case DENY_ALL: printf("DENY_ALL "); break; case DENY_DOS: printf("DENY_DOS "); break; case DENY_READ: printf("DENY_READ "); break; case DENY_WRITE:printf("DENY_WRITE "); break; - case 0xFF: case DENY_FCB: printf("DENY_FCB "); break; } switch (e->share_mode&0xF) { |