Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/smbfs/dist/lib/smb Disable unused codes that ca...
details: https://anonhg.NetBSD.org/src/rev/980a4ba27eb8
branches: trunk
changeset: 333747:980a4ba27eb8
user: nakayama <nakayama%NetBSD.org@localhost>
date: Sat Nov 15 18:55:26 2014 +0000
description:
Disable unused codes that causes SIGBUS or SIGSEGV if character
sets option (-E) is specified to mount_smbfs/rump_smbfs.
diffstat:
external/bsd/smbfs/dist/lib/smb/ctx.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (39 lines):
diff -r 20ba4c4bd567 -r 980a4ba27eb8 external/bsd/smbfs/dist/lib/smb/ctx.c
--- a/external/bsd/smbfs/dist/lib/smb/ctx.c Sat Nov 15 18:52:44 2014 +0000
+++ b/external/bsd/smbfs/dist/lib/smb/ctx.c Sat Nov 15 18:55:26 2014 +0000
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: ctx.c,v 1.2 2013/12/25 22:03:15 christos Exp $");
+__RCSID("$NetBSD: ctx.c,v 1.3 2014/11/15 18:55:26 nakayama Exp $");
#include <sys/param.h>
#include <sys/sysctl.h>
@@ -501,8 +501,10 @@
struct sockaddr *sap;
struct sockaddr_nb *salocal, *saserver;
char *cp;
+#ifdef notyet
u_char cstbl[256];
u_int i;
+#endif
int error = 0;
ctx->ct_flags &= ~SMBCF_RESOLVED;
@@ -531,6 +533,7 @@
error = smb_addiconvtbl("toupper", ssn->ioc_localcs, nls_upper);
if (error)
return error;
+#ifdef notyet
if (ssn->ioc_servercs[0] != 0) {
for(i = 0; i < sizeof(cstbl); i++)
cstbl[i] = i;
@@ -545,6 +548,7 @@
if (error)
return error;
}
+#endif
if (ctx->ct_srvaddr) {
error = nb_resolvehost_in(ctx->ct_srvaddr, &sap);
} else {
Home |
Main Index |
Thread Index |
Old Index