From 19dca64bb21f4a9a14a0e9465da1c9ddde199956 Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Sun, 16 Jan 2000 17:41:40 +0000 Subject: 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! --- source/rpcclient/display_srv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/rpcclient/display_srv.c') 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 ****************************************************************************/ -- cgit