summaryrefslogtreecommitdiffstats
path: root/contrib/smbfs
Commit message (Collapse)AuthorAgeFilesLines
* MFC r292337, r292552, r292553:ian2016-01-191-19/+13
| | | | | | | | | | | | | | | | | | | | | | | | Build mount_smbfs for arm. Also sort the subdirs. Avoid unaligned memory accesses when encoding netbios names in libsmb. 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. Make the building of libsmb and mount_smbfs unconditional, now that r292552 has eliminated alignment and endian problems that were making it fail on some platforms. PR: 180438 PR: 189415 Relnotes: Yes
* MFH: r292263brueffer2015-12-241-4/+4
| | | | | | | Assorted grammar, spelling and punctuation fixes. PR: 203336, 203339 Submitted by: espeyb@rpi.edu, themesta@gmail.com
* MFC r275805:tijl2015-04-304-16/+16
| | | | | | | | | | | | | Fix incorrect type of "invalids" argument in __iconv() prototype. MFC r281550,281591: Remove the const qualifier from iconv(3) to comply with POSIX: http://pubs.opengroup.org/onlinepubs/9699919799/functions/iconv.html Adjust all code that calls iconv. PR: 199099
* MFC r271259:trasz2014-09-251-9/+0
| | | | | | | | | Make it possible to use empty user name ("-U ''") for mount_smbfs(8). 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". Approved by: re (gjb) Sponsored by: The FreeBSD Foundation
* MFC r271258:trasz2014-09-251-1/+8
| | | | | | | | | | Make mount_smbfs(8) preserve the "automounted" mount flag. The issue here is that we have to pass this flag as a string, in iov, because it doesn't fit in mntflags, which is an int. Approved by: re (gjb) Sponsored by: The FreeBSD Foundation
* Merge r257888, r258049 from head:glebius2013-11-141-54/+38
| | | | | | | | - Use system libiconv, instead of trying to dlopen() it. - Just disable recoding support in libsmb if built WITHOUT_ICONV. PR: 183153 Approved by: re (kib)
* - Trim an unused and bogus Makefile for mount_smbfs.davide2013-06-281-18/+0
| | | | | | - Reconnect with some minor modifications, in particular now selsocket() internals are adapted to use sbintime units after recent'ish calloutng switch.
* Completely rewrite the interface to smbdev switching from dev_clonedavide2013-05-042-33/+5
| | | | | | | | | 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
* Bump .Dd date for previous revision.delphij2011-09-171-1/+1
| | | | Approved by: re (follow up commit fixing trivial issue)
* Change the example of using smbfs in fstab to a password-less one,delphij2011-09-171-3/+3
| | | | | | | | | which is less likely to block a remote system from boot. Submitted by: Garrett Cooper <yanegomi@gmail.com> PR: doc/160775 MFC after: 1 month Approved by: re (kib)
* shi1_remark is in little endian format, convert it to host ordering.yongari2010-01-251-2/+5
| | | | | | | | | Also remove upper 16bits which always seem to be 0xFFFF. We don't allocate more than 64KB buffer anyway. This change make smbutil work on sparc64. Reviewed by: marius, bp Approved by: bp
* Document the "-U" option. While it is not part of thetrhodes2009-01-222-2/+5
| | | | | | | | getopt(), it is accepted through smb_ctx_init() in lib/smb/ctx.c. PR: 117013 Submitted by: Tom Evans <tevans.uk@googlemail.com> (original version)
* 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.
* Document default values for timeout and retry count.danfe2007-06-161-0/+2
| | | | Approved by: fjoe
* Spell 'connection options' correctly.keramida2006-08-112-2/+6
| | | | Submitted by: Leonidas Tsampros <ltsampros@upnet.gr>
* -mdoc sweep.ru2005-11-181-2/+2
|
* Unbreak on amd64.ru2005-11-161-5/+4
|
* Convert mount_smbfs to use nmount().rodrigc2005-11-163-261/+67
| | | | Reviewed by: bp (smbfs maintainer)
* Quick kill links to the nsmb(8) manual page, there is no suchtrhodes2005-11-011-6/+0
| | | | utility that I can find.
* Allow user to override default port numbers used by communicationbp2005-10-027-13/+78
| | | | | | protocols. This is very useful for tunneled SMB connections. MFC after: 4 weeks
* Fix get{w,d}{l,b}e, set{w,d}{l,b}e macros on big endian systems.imura2005-09-191-14/+11
| | | | Obtained from: NetBSD
* Remove macrosimura2005-09-194-20/+26
| | | | | 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:
* Fix core dump when "smbutil lc".imura2005-07-281-1/+5
| | | | OK'ed by: bp
* 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>
* Correctly check the return value of kldload() to determine whether antjr2004-09-051-1/+1
| | | | error occurred.
* Do not use casts as lvalues.kan2004-07-282-2/+4
|
* Use correct location for nsmb.conf file.bp2004-07-171-1/+2
| | | | PR: misc/45273
* Re-add the code to automatically load the smbfs.ko module if necessary.mux2004-06-201-1/+11
| | | | | | | | | We can't realy on the mount(2) system call to do it for us here because smb_lib_init() needs the module and we call it before mount(). The old code has been slightly modified to not use the getvfsent(3) API which is now retired. Noticed by: many
* 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
* Sync with other mount_*fs(8) utilities; we don't need to try tomux2004-04-111-13/+3
| | | | | load the smbfs module because the mount(2) syscall will do it if it's needed.
* 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.
* Remove the # ("stringify") operator from the printf() arguments intjr2003-08-231-1/+1
| | | | | | the iprintf macro. It was causing the actual format string and variable names to be written out, instead of substituting the values of the variables into the format string.
* - Correct the path to the dot.nsmbrc sample file.simon2003-07-311-1/+2
| | | | | | | | - Add FreeBSD CVS tag. PR: docs/35649 Submitted by: roam Approved by: ceri (mentor)
* 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
* Pass getvfsbyname() the address of a struct xvfsconf instead oftjr2003-07-201-1/+2
| | | | | | | | struct vfsconf. This silences a warning, but could also prevent stack corruption problems if xvfsconf ever became larger than vfsconf. PR: 53863 Submitted by: Lukas Ertl
* The author wanted stringification, not concatenation.obrien2003-05-031-1/+2
|
* 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
* This commit was generated by cvs2svn to compensate for changes in r100490,bp2002-07-222-5/+25
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import smbfs 1.4.5. This release intended to fix problem with iconvbp2002-07-222-5/+25
| | | | | | | | | | | | library. MFC after: 1 week
* | This commit was generated by cvs2svn to compensate for changes in r95267,sheldonh2002-04-229-102/+135
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import smbfs-1.4.4.sheldonh2002-04-229-102/+135
| |
OpenPOWER on IntegriCloud