summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-07-08 01:55:26 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-08 14:09:07 +0200
commit06247a7a094b30229fda26844526c5217ba6fe0c (patch)
tree50743a8c496ea98d5e22423eb533e6b45032c7ec
parenta7b9c628af3155f0ad406830a975c84845d34b3b (diff)
downloadsamba-06247a7a094b30229fda26844526c5217ba6fe0c.tar.gz
samba-06247a7a094b30229fda26844526c5217ba6fe0c.tar.bz2
samba-06247a7a094b30229fda26844526c5217ba6fe0c.zip
s3:libsmb: remove use of cli_errstr() in SMBC_server_internal()
metze
-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 d83d8ff347..b3551374ed 100644
--- a/source3/libsmb/libsmb_server.c
+++ b/source3/libsmb/libsmb_server.c
@@ -516,9 +516,14 @@ SMBC_server_internal(TALLOC_CTX *ctx,
/* Determine if this share supports case sensitivity */
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 the share. We
@@ -530,7 +535,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
? "True"