summaryrefslogtreecommitdiffstats
path: root/source/rpcclient/display_srv.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>2000-01-16 17:41:40 +0000
committerLuke Leighton <lkcl@samba.org>2000-01-16 17:41:40 +0000
commit19dca64bb21f4a9a14a0e9465da1c9ddde199956 (patch)
tree86acb95d4934bd2babf0ecc5233a5864360d38c9 /source/rpcclient/display_srv.c
parent0d73371384287b1ad0e17e9a05393ed5c954b20c (diff)
downloadsamba-19dca64bb21f4a9a14a0e9465da1c9ddde199956.tar.gz
samba-19dca64bb21f4a9a14a0e9465da1c9ddde199956.tar.xz
samba-19dca64bb21f4a9a14a0e9465da1c9ddde199956.zip
rpcclient wasn't asking for a password if you didn't supply one.
nmbd reload_services() renamed to a static reload_nmbd_services() stopped clientgen.c filling in the domain name in usr_creds, this is "unexpected" behaviour that stops cli_net_use_del() from being able to unlink the SMB connection!
Diffstat (limited to 'source/rpcclient/display_srv.c')
-rw-r--r--source/rpcclient/display_srv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/rpcclient/display_srv.c b/source/rpcclient/display_srv.c
index f0069c0d532..57cfa13dde9 100644
--- a/source/rpcclient/display_srv.c
+++ b/source/rpcclient/display_srv.c
@@ -51,13 +51,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: fstrcpy(mode, "DENY_FCB "); break;
default : fstrcpy(mode, "DENY_???? "); break;
}
@@ -71,7 +72,6 @@ char *get_file_mode_str(uint32 share_mode)
return mode;
}
-
/****************************************************************************
convert an oplock mode to a string
****************************************************************************/