git.samba.org
/
gd
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ee43c7
)
r618: Bug #1333. Fix a problem pointed out by coolo where I was trying to ensure
author
Richard Sharpe
<sharpe@samba.org>
Sun, 9 May 2004 22:39:39 +0000
(22:39 +0000)
committer
Richard Sharpe
<sharpe@samba.org>
Sun, 9 May 2004 22:39:39 +0000
(22:39 +0000)
that the errno is not trashed by a DEBUG statement, but screwed up.
source/libsmb/libsmbclient.c
patch
|
blob
|
history
diff --git
a/source/libsmb/libsmbclient.c
b/source/libsmb/libsmbclient.c
index 949c5ffab670f0ec1b928a2df922e2fddf04be9b..e44bdea2d3d3cb9eed50cc3e529f6c3252cf45be 100644
(file)
--- a/
source/libsmb/libsmbclient.c
+++ b/
source/libsmb/libsmbclient.c
@@
-686,7
+686,7
@@
SMBCSRV *smbc_server(SMBCCTX *context,
if (context->callbacks.add_cached_srv_fn(context, srv, server, share, workgroup, username)) {
int saved_errno = errno;
DEBUG(3, (" Failed to add server to cache\n"));
-
saved_errno =
errno;
+
errno = saved_
errno;
if (errno == 0) {
errno = ENOMEM;
}