summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Baumbach <bb@sernet.de>2011-07-07 17:18:40 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-07 19:16:28 +0200
commit11426758d71e59ffe9804d2ebb2f145b4ed398e1 (patch)
tree563d1c05a2c2a37b84c10a8965fb3e5172097552
parent98e0f9d1edb77f07f2f733478e91d0410c020b2e (diff)
downloadsamba-11426758d71e59ffe9804d2ebb2f145b4ed398e1.tar.gz
samba-11426758d71e59ffe9804d2ebb2f145b4ed398e1.tar.bz2
samba-11426758d71e59ffe9804d2ebb2f145b4ed398e1.zip
s3-libsmb: Remove use of cli_errstr()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r--source3/libsmb/libsmb_server.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/source3/libsmb/libsmb_server.c b/source3/libsmb/libsmb_server.c
index 755ef2d32b..d83d8ff347 100644
--- a/source3/libsmb/libsmb_server.c
+++ b/source3/libsmb/libsmb_server.c
@@ -329,10 +329,15 @@ SMBC_server_internal(TALLOC_CTX *ctx,
if (is_ipc) {
DEBUG(4,
("IPC$ so ignore case sensitivity\n"));
- } else if (!NT_STATUS_IS_OK(cli_get_fs_attr_info(c, &fs_attrs))) {
+ status = NT_STATUS_OK;
+ } else {
+ status = cli_get_fs_attr_info(c, &fs_attrs);
+ }
+
+ if (!NT_STATUS_IS_OK(status)) {
DEBUG(4, ("Could not retrieve "
"case sensitivity flag: %s.\n",
- cli_errstr(c)));
+ nt_errstr(status)));
/*
* We can't determine the case sensitivity of
@@ -344,7 +349,7 @@ SMBC_server_internal(TALLOC_CTX *ctx,
} else {
cli_set_case_sensitive(c, False);
}
- } else {
+ } else if (!is_ipc) {
DEBUG(4,
("Case sensitive: %s\n",
(fs_attrs & FILE_CASE_SENSITIVE_SEARCH