Project

General

Profile

Submit #3172 ยป 0001-Updated-spelling-corrections-as-well-as-safe-string-.patch

dragonpoet, 02/12/2019 02:31 AM

View differences:

contrib/smbfs/README
Darwin maintained in the Darwin's tree.
I'm would be very grateful for any feedback, bug reports etc.
I would be very grateful for any feedback, bug reports etc.
Supported SMB servers:
Samba
......
IBM LanManager
NetApp
An updated versions of this package can be retrieved from ftp server:
An updated version of this package can be retrieved from ftp server:
ftp://ftp.butya.kz/pub/smbfs/smbfs.tar.gz
Perfomance
Performance
==========
There is some perfomance benchmarks over 10Mbit network:
These are some performance benchmarks over a 10Mbit network:
Win95 machine as server:
IOZONE: auto-test mode
contrib/smbfs/lib/smb/kiconv.c
struct iconv_add_out dout;
size_t olen;
if (strlen(from) > ICONV_CSNMAXLEN || strlen(to) > ICONV_CSNMAXLEN)
if (strlen(from) >= ICONV_CSNMAXLEN || strlen(to) >= ICONV_CSNMAXLEN)
return EINVAL;
din.ia_version = ICONV_ADD_VER;
strcpy(din.ia_converter, "xlat");
contrib/smbfs/lib/smb/nbns_rq.c
if (error)
return error;
bzero(&nn, sizeof(nn));
strcpy(nn.nn_name, name);
strlcpy(nn.nn_name, name, sizeof(nn.nn_name));
nn.nn_scope = ctx->nb_scope;
nn.nn_type = NBT_SERVER;
rqp->nr_nmflags = NBNS_NMFLAG_RD;
contrib/smbfs/lib/smb/rap.c
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <strings.h>
#include <stdlib.h>
#include <sysexits.h>
contrib/smbfs/lib/smb/rq.c
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <strings.h>
#include <stdlib.h>
#include <sysexits.h>
contrib/smbfs/lib/smb/subr.c
islower(ch) ? ('a' + (ch - 'a' + 13) % 26) : ch);
ch ^= pos;
pos += 13;
if (pos > 256)
pos -= 256;
sprintf(dst, "%02x", ch);
dst += 2;
}
......
return EINVAL;
ch ^= pos;
pos += 13;
if (pos > 256)
pos -= 256;
if (isascii(ch))
ch = (isupper(ch) ? ('A' + (ch - 'A' + 13) % 26) :
islower(ch) ? ('a' + (ch - 'a' + 13) % 26) : ch);
contrib/smbfs/smbutil/print.c
print_usage(void)
{
printf(
"usage: smbutil print [connection optinons] //user@server/share\n"
"usage: smbutil print [connection options] //user@server/share\n"
);
exit(1);
}
    (1-1/1)