summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-09-13 20:13:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:03:37 -0500
commit20a36a780a4998ea3619bcf3bb86d90b18fd8f2a (patch)
treebfe35def08b3d8565f6b84b7498c88b2fca43282 /source3
parentb51567624895f83f0274b60fd33cfad20c73db07 (diff)
downloadsamba-20a36a780a4998ea3619bcf3bb86d90b18fd8f2a.tar.gz
samba-20a36a780a4998ea3619bcf3bb86d90b18fd8f2a.tar.bz2
samba-20a36a780a4998ea3619bcf3bb86d90b18fd8f2a.zip
r10208: Correctly display RDWR only when it *is* RDWR...
Jeremy. (This used to be commit 99d883b9c4a450222e75132b2cf28b597217ce79)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/status.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/utils/status.c b/source3/utils/status.c
index bed9828c22..96e4bd266b 100644
--- a/source3/utils/status.c
+++ b/source3/utils/status.c
@@ -128,7 +128,8 @@ static void print_share_mode(share_mode_entry *e, char *fname)
}
}
d_printf("0x%-8x ",(unsigned int)e->access_mask);
- if (e->access_mask & (FILE_READ_DATA|FILE_WRITE_DATA)) {
+ if ((e->access_mask & (FILE_READ_DATA|FILE_WRITE_DATA))==
+ (FILE_READ_DATA|FILE_WRITE_DATA)) {
d_printf("RDWR ");
} else if (e->access_mask & FILE_WRITE_DATA) {
d_printf("WRONLY ");