Robert Watson
6966d7767a
When encoding an smb name, truncate one byte earlier in order than we did
...
previously in order to ensure it fit properly in the bufer when encoded.
This prevents a debugging printf from firing if a source or destination
host name for an smb mount exceeds 15 characters.
MFC after: 3 days
Obtained from: Apple, Inc.
2008-11-02 19:48:15 +00:00
Boris Popov
ef29b0f6a1
Allow user to override default port numbers used by communication
...
protocols. This is very useful for tunneled SMB connections.
MFC after: 4 weeks
2005-10-02 08:32:49 +00:00
R. Imura
4d79445aaf
Remove macros
...
htole{s,l,q}, letoh{s,l,q}, htobe{s,l,q}, betoh{s,l,q}
and replace it with more standard byteorder macros in our system.
2005-09-19 08:07:18 +00:00
R. Imura
f373a82454
- Fix checking range of strings of struct iconv_add_in in libsmb and libkiconv,
...
- Add checking range of strings to iconv_sysctl_add().
Submitted by: Rudolf Cejka
2005-08-24 12:38:26 +00:00
R. Imura
19434a77d6
Tell nls_setlocale() the very locale name from command line option,
...
rather than using optarg variable which would be allways NULL.
2005-08-07 08:46:56 +00:00
R. Imura
f0a446ea10
Correct argument order of kiconv_add_xlat16_cspairs().
...
Security:
2005-07-29 14:56:16 +00:00
Takanori Watanabe
4ebd3ea1f6
Make smbfs capable to use 16bit char set in filenames.
...
PR:78110
2005-05-04 15:05:46 +00:00
David E. O'Brien
1ac62e0b31
+ Get prototypes for libc functions.
...
+ Use the correct printf format for size_t.
2004-10-19 17:44:31 +00:00
David E. O'Brien
caef65b837
Size matters. Correctly use a size_t so 64-bit hosts can mount SMB FS's
...
when using character set conversions.
Also include POSIX <string.h> vs. BSD <strings.h> now that we've broken
traditional BSD behavior [and compatibility with our BSD brethren].
PR: 72445
Submitted by: Vladimir Nechitailo <nechit@lpi.ru>
Patch by: Stasys Smailys <ssmailys@komvista.lt>
2004-10-19 17:39:15 +00:00
Alexander Kabaev
2cc37f2ca4
Do not use casts as lvalues.
2004-07-28 05:33:58 +00:00
Lukas Ertl
7d475e356f
Fine-tune the last change even more and use the return value as error
...
indicator, as it is expected.
Spotted by: Christoph Mallon <christoph.mallon@gmx.de>
2004-06-19 19:03:01 +00:00
Lukas Ertl
8c0c5d04b0
Don't return NULL when the function is defined to return an integer.
...
OK'ed by: tjr
2004-06-19 10:09:44 +00:00
Tim J. Robbins
8861f1dd53
Merge from NetBSD rev. 1.3 (drochner): Use getifaddrs(3) instead of
...
SIOCGIFCONF.
2004-02-26 08:49:19 +00:00
Tim J. Robbins
8299402aca
Merge from NetBSD rev. 1.2 (drochner): Do the address calculations inside
...
the data delivered by SIOCGIFCONF correctly (this isn't a plain array!),
and sort the checks a bit to avoid duplicates in the interface list.
2004-01-28 05:55:13 +00:00
Tim J. Robbins
5ec3441dd2
Fix some off-by-one errors dealing with limits of server names,
...
usernames, workgroup names and passwords. We can now connect to
servers with 15-character NetBIOS names. (Some versions of Windows
use semi-random 15-char names by default.)
PR: 46902
2003-07-27 11:41:38 +00:00
Peter Wemm
db75019614
Fixes for 64 bit cleanliness. The length arg to sysctl is a pointer to
...
size_t not int.
Reviewed by: bp
2003-07-26 04:03:18 +00:00
Peter Wemm
26c4b7deaa
Use #include <string.h> rather than <strings.h> so that the strdup()
...
prototype gets brought into scope. This is a big deal for 64 bit
systems where the default return value of 'int' is != pointer.
Reviewed by: bp
2003-07-26 04:02:22 +00:00
Tim J. Robbins
81b431dba3
Fix a typo in the -O parsing code that caused a crash when the -O option
...
is used without supplying "sowner:sgroup".
Obtained from: NetBSD (jdolecek)
PR: 37171
2003-04-12 12:11:14 +00:00
Boris Popov
b4bd78b0cf
Import smbfs 1.4.5. This release intended to fix problem with iconv
...
library.
MFC after: 1 week
2002-07-22 09:50:09 +00:00
Sheldon Hearn
34ffbc80d6
Import smbfs-1.4.4.
2002-04-22 16:15:20 +00:00
Sheldon Hearn
8d4076f081
Import smbfs-1.4.3.
2001-12-26 15:35:10 +00:00
Sheldon Hearn
df3342d686
Import smbfs-1.4.2.
2001-12-20 16:16:25 +00:00
Sheldon Hearn
f1b9d12761
Import smbfs-1.4.1.
...
This is Boris Popov's SMB/CIFS file system implementation for FreeBSD.
Obtained from: Boris Popov via ftp://ftp.butya.kz/pub/smbfs/
2001-12-14 11:06:03 +00:00