summaryrefslogtreecommitdiffstats
path: root/contrib/smbfs/lib/smb
Commit message (Collapse)AuthorAgeFilesLines
* MFC 319670jpaetzel2017-06-151-0/+4
| | | | | | | | Fix SMBFS when saved passwords are greater than 18 character PR: 132302 Submitted by: dhorn2000@gmail.com guru@unixarea.de Approved by: re (gjb)
* Avoid unaligned memory accesses when encoding netbios names in libsmb.ian2015-12-211-19/+13
| | | | | | | | | | | | | | | | The current code for encoding a netbios name converts each byte to a 16-bit value and stores the result by casting a char* to u_short*, resulting in alignment faults on strict-alignment platforms. This change reimplements the encoding routine using only byte accesses to memory. There is no particular reason to work with 16-bit values just because the encoding process creates two bytes of output for every byte of input. Working a byte at at time also avoids endian problems for big-endian platforms. PR: 180438 PR: 189415 Differential Revision: https://reviews.freebsd.org/D4622
* Remove the const qualifier from iconv(3) to comply with POSIX:tijl2015-04-153-9/+9
| | | | | | | | | | http://pubs.opengroup.org/onlinepubs/9699919799/functions/iconv.html Adjust all code that calls iconv. PR: 199099 Exp-run by: antoine MFC after: 2 weeks
* Make it possible to use empty user name ("-U ''") for mount_smbfs(8).trasz2014-09-081-9/+0
| | | | | | | | It's just like "-U guest", except that it actually works, at least with Samba 4, which seems to return authentication failure for "-U guest". MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Just disable recoding support in libsmb if built WITHOUT_ICONV.glebius2013-11-121-4/+25
|
* Use system libiconv, instead of trying to dlopen() it.glebius2013-11-091-52/+15
| | | | | PR: 183153 Submitted by: Dominic Fandrey <kamikaze bsdforen.de>
* Completely rewrite the interface to smbdev switching from dev_clonedavide2013-05-041-29/+1
| | | | | | | | | to cdevpriv(9). This commit changes the semantic of mount_smbfs in userland as well, which now passes file descriptor in order to to mount a specific filesystem istance. Reviewed by: attilio, ed Tested by: martymac
* When encoding an smb name, truncate one byte earlier in order than we didrwatson2008-11-021-1/+1
| | | | | | | | | 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.
* Allow user to override default port numbers used by communicationbp2005-10-024-10/+56
| | | | | | protocols. This is very useful for tunneled SMB connections. MFC after: 4 weeks
* Remove macrosimura2005-09-193-17/+20
| | | | | 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.
* - Fix checking range of strings of struct iconv_add_in in libsmb and libkiconv,imura2005-08-241-1/+1
| | | | | | - Add checking range of strings to iconv_sysctl_add(). Submitted by: Rudolf Cejka
* Tell nls_setlocale() the very locale name from command line option,imura2005-08-071-1/+1
| | | | rather than using optarg variable which would be allways NULL.
* Correct argument order of kiconv_add_xlat16_cspairs().imura2005-07-291-1/+1
| | | | Security:
* Make smbfs capable to use 16bit char set in filenames.takawata2005-05-041-15/+4
| | | | PR:78110
* + Get prototypes for libc functions.obrien2004-10-194-2/+11
| | | | + Use the correct printf format for size_t.
* Size matters. Correctly use a size_t so 64-bit hosts can mount SMB FS'sobrien2004-10-191-5/+8
| | | | | | | | | | 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>
* Do not use casts as lvalues.kan2004-07-282-2/+4
|
* Fine-tune the last change even more and use the return value as errorle2004-06-191-1/+1
| | | | | | indicator, as it is expected. Spotted by: Christoph Mallon <christoph.mallon@gmx.de>
* Don't return NULL when the function is defined to return an integer.le2004-06-191-1/+1
| | | | OK'ed by: tjr
* Merge from NetBSD rev. 1.3 (drochner): Use getifaddrs(3) instead oftjr2004-02-261-61/+30
| | | | SIOCGIFCONF.
* Merge from NetBSD rev. 1.2 (drochner): Do the address calculations insidetjr2004-01-281-13/+23
| | | | | 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.
* Fix some off-by-one errors dealing with limits of server names,tjr2003-07-271-5/+5
| | | | | | | | 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
* Fixes for 64 bit cleanliness. The length arg to sysctl is a pointer topeter2003-07-261-1/+2
| | | | | | size_t not int. Reviewed by: bp
* Use #include <string.h> rather than <strings.h> so that the strdup()peter2003-07-261-1/+2
| | | | | | | 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
* Fix a typo in the -O parsing code that caused a crash when the -O optiontjr2003-04-121-1/+2
| | | | | | | is used without supplying "sowner:sgroup". Obtained from: NetBSD (jdolecek) PR: 37171
* Import smbfs 1.4.5. This release intended to fix problem with iconvbp2002-07-221-5/+21
| | | | | | library. MFC after: 1 week
* Import smbfs-1.4.4.sheldonh2002-04-221-5/+13
|
* Import smbfs-1.4.3.sheldonh2001-12-261-3/+3
|
* Import smbfs-1.4.2.sheldonh2001-12-204-8/+162
|
* Import smbfs-1.4.1.sheldonh2001-12-1417-0/+4180
This is Boris Popov's SMB/CIFS file system implementation for FreeBSD. Obtained from: Boris Popov via ftp://ftp.butya.kz/pub/smbfs/
OpenPOWER on IntegriCloud