aboutsummaryrefslogtreecommitdiff
path: root/contrib/smbfs
Commit message (Collapse)AuthorAgeFilesLines
* Fix SMBFS when saved passwords are greater than 18 charactersJosh Paetzel2017-06-081-0/+4
| | | | | | | | | PR: 132302 Submitted by: dhorn2000@gmail.com guru@unixarea.de MFC after: 1 week Notes: svn path=/head/; revision=319670
* Add #include <string.h> to mute warning from clang/gcc about implicitlyEnji Cooper2016-02-011-0/+1
| | | | | | | | | | | declaring strcmp(3) MFC after: 1 month Reported by: Jenkins Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=295118
* Avoid unaligned memory accesses when encoding netbios names in libsmb.Ian Lepore2015-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 Notes: svn path=/head/; revision=292552
* Assorted grammar, spelling and punctuation fixes.Christian Brueffer2015-12-151-4/+4
| | | | | | | | | PR: 203336, 203339 Submitted by: espeyb@rpi.edu, themesta@gmail.com MFC after: 1 week Notes: svn path=/head/; revision=292263
* Remove the const qualifier from iconv(3) to comply with POSIX:Tijl Coosemans2015-04-154-16/+16
| | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=281550
* Make it possible to use empty user name ("-U ''") for mount_smbfs(8).Edward Tomasz Napierala2014-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 Notes: svn path=/head/; revision=271259
* Make mount_smbfs(8) preserve the "automounted" mount flag.Edward Tomasz Napierala2014-09-081-1/+8
| | | | | | | | | | | 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. MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=271258
* Just disable recoding support in libsmb if built WITHOUT_ICONV.Gleb Smirnoff2013-11-121-4/+25
| | | | Notes: svn path=/head/; revision=258049
* Use system libiconv, instead of trying to dlopen() it.Gleb Smirnoff2013-11-091-52/+15
| | | | | | | | PR: 183153 Submitted by: Dominic Fandrey <kamikaze bsdforen.de> Notes: svn path=/head/; revision=257888
* - Trim an unused and bogus Makefile for mount_smbfs.Davide Italiano2013-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. Notes: svn path=/head/; revision=252356
* Completely rewrite the interface to smbdev switching from dev_cloneDavide Italiano2013-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 Notes: svn path=/head/; revision=250236
* Bump .Dd date for previous revision.Xin LI2011-09-171-1/+1
| | | | | | | Approved by: re (follow up commit fixing trivial issue) Notes: svn path=/head/; revision=225644
* Change the example of using smbfs in fstab to a password-less one,Xin LI2011-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) Notes: svn path=/head/; revision=225643
* shi1_remark is in little endian format, convert it to host ordering.Pyun YongHyeon2010-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 Notes: svn path=/head/; revision=202980
* Document the "-U" option. While it is not part of theTom Rhodes2009-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) Notes: svn path=/head/; revision=187583
* When encoding an smb name, truncate one byte earlier in order than we didRobert Watson2008-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. Notes: svn path=/head/; revision=184567
* Document default values for timeout and retry count.Alexey Dokuchaev2007-06-161-0/+2
| | | | | | | Approved by: fjoe Notes: svn path=/head/; revision=170820
* Spell 'connection options' correctly.Giorgos Keramidas2006-08-112-2/+6
| | | | | | | Submitted by: Leonidas Tsampros <ltsampros@upnet.gr> Notes: svn path=/head/; revision=161207
* -mdoc sweep.Ruslan Ermilov2005-11-181-2/+2
| | | | Notes: svn path=/head/; revision=152569
* Unbreak on amd64.Ruslan Ermilov2005-11-161-5/+4
| | | | Notes: svn path=/head/; revision=152523
* Convert mount_smbfs to use nmount().Craig Rodrigues2005-11-163-261/+67
| | | | | | | Reviewed by: bp (smbfs maintainer) Notes: svn path=/head/; revision=152467
* Quick kill links to the nsmb(8) manual page, there is no suchTom Rhodes2005-11-011-6/+0
| | | | | | | utility that I can find. Notes: svn path=/head/; revision=151936
* Allow user to override default port numbers used by communicationBoris Popov2005-10-027-13/+78
| | | | | | | | | protocols. This is very useful for tunneled SMB connections. MFC after: 4 weeks Notes: svn path=/head/; revision=150802
* Fix get{w,d}{l,b}e, set{w,d}{l,b}e macros on big endian systems.R. Imura2005-09-191-14/+11
| | | | | | | Obtained from: NetBSD Notes: svn path=/head/; revision=150313
* Remove macrosR. Imura2005-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. Notes: svn path=/head/; revision=150312
* - Fix checking range of strings of struct iconv_add_in in libsmb and libkiconv,R. Imura2005-08-241-1/+1
| | | | | | | | | - Add checking range of strings to iconv_sysctl_add(). Submitted by: Rudolf Cejka Notes: svn path=/head/; revision=149415
* Tell nls_setlocale() the very locale name from command line option,R. Imura2005-08-071-1/+1
| | | | | | | rather than using optarg variable which would be allways NULL. Notes: svn path=/head/; revision=148815
* Correct argument order of kiconv_add_xlat16_cspairs().R. Imura2005-07-291-1/+1
| | | | | | | Security: Notes: svn path=/head/; revision=148519
* Fix core dump when "smbutil lc".R. Imura2005-07-281-1/+5
| | | | | | | OK'ed by: bp Notes: svn path=/head/; revision=148496
* Make smbfs capable to use 16bit char set in filenames.Takanori Watanabe2005-05-041-15/+4
| | | | | | | PR:78110 Notes: svn path=/head/; revision=145872
* + Get prototypes for libc functions.David E. O'Brien2004-10-194-2/+11
| | | | | | | + Use the correct printf format for size_t. Notes: svn path=/head/; revision=136700
* Size matters. Correctly use a size_t so 64-bit hosts can mount SMB FS'sDavid E. O'Brien2004-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> Notes: svn path=/head/; revision=136699
* Correctly check the return value of kldload() to determine whether anTim J. Robbins2004-09-051-1/+1
| | | | | | | error occurred. Notes: svn path=/head/; revision=134801
* Do not use casts as lvalues.Alexander Kabaev2004-07-282-2/+4
| | | | Notes: svn path=/head/; revision=132752
* Use correct location for nsmb.conf file.Boris Popov2004-07-171-1/+2
| | | | | | | PR: misc/45273 Notes: svn path=/head/; revision=132289
* Re-add the code to automatically load the smbfs.ko module if necessary.Maxime Henrion2004-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 Notes: svn path=/head/; revision=130789
* Fine-tune the last change even more and use the return value as errorLukas Ertl2004-06-191-1/+1
| | | | | | | | | indicator, as it is expected. Spotted by: Christoph Mallon <christoph.mallon@gmx.de> Notes: svn path=/head/; revision=130737
* Don't return NULL when the function is defined to return an integer.Lukas Ertl2004-06-191-1/+1
| | | | | | | OK'ed by: tjr Notes: svn path=/head/; revision=130716
* Sync with other mount_*fs(8) utilities; we don't need to try toMaxime Henrion2004-04-111-13/+3
| | | | | | | | load the smbfs module because the mount(2) syscall will do it if it's needed. Notes: svn path=/head/; revision=128140
* Merge from NetBSD rev. 1.3 (drochner): Use getifaddrs(3) instead ofTim J. Robbins2004-02-261-61/+30
| | | | | | | SIOCGIFCONF. Notes: svn path=/head/; revision=126269
* Merge from NetBSD rev. 1.2 (drochner): Do the address calculations insideTim J. Robbins2004-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. Notes: svn path=/head/; revision=125130
* Remove the # ("stringify") operator from the printf() arguments inTim J. Robbins2003-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. Notes: svn path=/head/; revision=119363
* - Correct the path to the dot.nsmbrc sample file.Simon L. B. Nielsen2003-07-311-1/+2
| | | | | | | | | | | - Add FreeBSD CVS tag. PR: docs/35649 Submitted by: roam Approved by: ceri (mentor) Notes: svn path=/head/; revision=118261
* Fix some off-by-one errors dealing with limits of server names,Tim J. Robbins2003-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 Notes: svn path=/head/; revision=118079
* Fixes for 64 bit cleanliness. The length arg to sysctl is a pointer toPeter Wemm2003-07-261-1/+2
| | | | | | | | | size_t not int. Reviewed by: bp Notes: svn path=/head/; revision=118042
* Use #include <string.h> rather than <strings.h> so that the strdup()Peter Wemm2003-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 Notes: svn path=/head/; revision=118041
* Pass getvfsbyname() the address of a struct xvfsconf instead ofTim J. Robbins2003-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 Notes: svn path=/head/; revision=117804
* The author wanted stringification, not concatenation.David E. O'Brien2003-05-031-1/+2
| | | | Notes: svn path=/head/; revision=114592
* Fix a typo in the -O parsing code that caused a crash when the -O optionTim J. Robbins2003-04-121-1/+2
| | | | | | | | | | is used without supplying "sowner:sgroup". Obtained from: NetBSD (jdolecek) PR: 37171 Notes: svn path=/head/; revision=113396
* This commit was generated by cvs2svn to compensate for changes in r100490,Boris Popov2002-07-222-5/+25
|\ | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=100491