git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a7b9c62
)
s3:libsmb: remove use of cli_errstr() in SMBC_server_internal()
author
Stefan Metzmacher
<metze@samba.org>
Thu, 7 Jul 2011 23:55:26 +0000
(
01:55
+0200)
committer
Stefan Metzmacher
<metze@samba.org>
Fri, 8 Jul 2011 12:09:07 +0000
(14:09 +0200)
metze
source3/libsmb/libsmb_server.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/libsmb_server.c
b/source3/libsmb/libsmb_server.c
index d83d8ff3474e7cc770f20577f1c72a2b2a08c74f..b3551374ed9f90fe09c9735a34aebc4be0bae190 100644
(file)
--- 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"));
/* 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",
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
/*
* 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 {
cli_set_case_sensitive(c, False);
}
- } else {
+ } else
if (!is_ipc)
{
DEBUG(4, ("Case sensitive: %s\n",
(fs_attrs & FILE_CASE_SENSITIVE_SEARCH
? "True"
DEBUG(4, ("Case sensitive: %s\n",
(fs_attrs & FILE_CASE_SENSITIVE_SEARCH
? "True"