git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c426340
)
r21846: Try and fix the Darwin build which seems to have a strange krb5.
author
Jeremy Allison
<jra@samba.org>
Thu, 15 Mar 2007 20:45:27 +0000
(20:45 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:18:37 +0000
(12:18 -0500)
Jeremy.
source/libsmb/clikrb5.c
patch
|
blob
|
history
diff --git
a/source/libsmb/clikrb5.c
b/source/libsmb/clikrb5.c
index 659197214fe54b9b0678c70a66c2c99c35d779f9..fa93bed63dd4690575ca859575663009e6be162d 100644
(file)
--- a/
source/libsmb/clikrb5.c
+++ b/
source/libsmb/clikrb5.c
@@
-1449,7
+1449,13
@@
done:
memset(&e, 0, sizeof(e));
krb5_us_timeofday(context, &e.stime, &e.susec);
e.server = server;
+#if defined(krb5_err_base)
e.error = error_code - krb5_err_base;
+#elif defined(ERROR_TABLE_BASE_krb5)
+ e.error = error_code - ERROR_TABLE_BASE_krb5;
+#else
+ e.error = error_code; /* Almost certainly wrong, but what can we do... ? */
+#endif
return krb5_mk_error(context, &e, reply);
#else /* Heimdal. */