Commit Graph

28 Commits

Author SHA1 Message Date
dsl 91d3fe12d9 Add (unsigned char) cast to ctype function 2004-10-29 19:15:20 +00:00
tshiozak f7d656a488 revert the last all changes related to iconv(3). 2004-08-02 13:38:21 +00:00
tshiozak ab8d4be7c6 make sure that the iconv(3) follows the POSIX specification;
change the 2nd argument from "const char ** restrict" to "char ** restrict".
2004-08-01 16:40:58 +00:00
jdolecek f7461cc453 make the fallback to *SMBSERVER actually work (tested against Windows NT
share)

this fixes PR kern/23401 by Hubert Feyrer for real, and also fixes
PR kern/20991 by Robert Vargason
2004-03-21 12:30:51 +00:00
jdolecek b717338fee clarify the error message when the open of /dev/nsmb* fails
enable the check for cloned /dev/nsmb, to simplify eventual future switch
to cloned /dev/nsmb device

use compile time string concatenation for one constant string
2004-03-21 07:16:39 +00:00
jdolecek f72b1e5951 automatically fallback to server name *SMBSERVER if using -I and initial
request fails
fixes PR bin/23401 by Hubert Feyrer
2004-03-20 08:55:00 +00:00
jdolecek 638863d716 convert to using the libc iconv rather than trying to load libiconv.so 2004-03-01 07:46:33 +00:00
jdolecek 10677fb827 switch nb_resolvehost_in() to getaddrinfo()
g/c commented out nbns_*() functions, they are implemented elsewhere
2004-02-21 10:09:01 +00:00
wiz ee1b406595 Spell address with two d's. Inspired by similar changes in OpenBSD,
originating from Jonathon Gray and forwarded by jmc@openbsd.
2003-11-10 08:51:51 +00:00
fvdl ccd0060f62 Don't return NULL as an int. 2003-10-21 02:36:06 +00:00
christos 3a06209abb make this compile again. 2003-08-13 01:13:41 +00:00
martin 9fca39993e Remove unessecary intermediate void* casts. 2003-08-10 14:12:43 +00:00
mrg 71d44508da add an extra cast to quiet gcc3 2003-07-26 14:59:11 +00:00
jdolecek 350a2ec006 don't print any warning message when no config file is found 2003-04-11 17:31:58 +00:00
jdolecek 210e3d8b14 if the share name contains a dot, assume it's actually a server name
or server IP address - this allows 'mount_smbfs //192.168.0.1/foo /mnt'
to work as expected, i.e. being same as if -I 192.168.0.1 would be
specified too
perhaps we should resolve the IP to real NetBIOS name, but
apparently both Samba 2.2.8 and Windows XP accept the logon request
even when the NetBIOS name isn't correct

adresses PR kern/20991 by Robert Vargason
2003-04-09 09:12:38 +00:00
jdolecek 489f0e16b9 fix a fatal pasto in -O parsing code - if only the 'cowner:cgroup'
part would be specified (i.e. no '/' in the string), smb_parse_owner()
would be called with NULL 'cp' with obvious results; call it with 'p'
instead, so that the 'sowner:sgroup' is really optional as the code intended

problem pointed out by Masao Uebayashi <uebayasi at pultek dot co dot jp>
in private mail

smb_parse_owner(): put the group/user name in apostrophes in error message,
for readability
2003-04-07 12:36:26 +00:00
jdolecek 1233bcc56f sprinle __RCSID() 2003-04-04 08:05:32 +00:00
drochner dcee882e84 Use getifaddrs(3) instead of SIOCGIFCONF. 2003-03-31 12:22:02 +00:00
drochner faf7f09d5f 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.
Now broadcast capable interfaces are identified and "mount_smbfs"
can be used without the "-I <addr>" argument.
2003-03-28 16:56:37 +00:00
jdolecek cd7975662e memsetw(): fix mistake where the 'word' value would get written byteswapped
on i386, resulting in ' ' being encoded incorrectly in session
setup query - just use memcpy() as rest of code, it DTRT for both LE and
BE machines in this case,  since the function is called with 'word'
in little-endian format

Many thanks to Martin Husemann for testing on i386 and sparc64 against
both w2k and Samba.
2003-03-28 13:08:00 +00:00
martin 58a4ff2fef Avoid lots of stupid alignement problems.
You can now actually use this on sparc64 systems. Unfortunately the
kernel part contains lots more of this ****** code.
2003-02-20 14:07:12 +00:00
martin d47d521c0f Since size_t is unsigned, better use (unsigned long) and %lu to print
a size_t. Spotted by kleink.
2003-02-19 19:15:28 +00:00
martin 93f473507c Replace some int's with size_t. Use %ld and cast to long when printing
size_t's.
2003-02-19 16:53:26 +00:00
jdolecek 74563995a5 make compile on NetBSD - <sys/endian.h> instead of <sys/mchain.h>, use
explicit width macros, disable some not-yet supported functionality
(conversion map upload, smb_dumptree())
2003-02-18 09:52:03 +00:00
jdolecek 648f05609d no need for iconv.h include here
no \n on end of warn() format
include <sys/param.h> for some contants
iconv_loaded--, not iconv_loaded++ when the dlopen() fails
2003-02-18 09:47:48 +00:00
jdolecek add8c3ba9a constify some structs 2003-02-18 09:45:58 +00:00
jdolecek 8fec3ea9ce Import once more, this time stripping $'s from RCS Ids, so that they
are kept intact.
2003-02-16 09:19:10 +00:00
jdolecek 42cf4439c1 Import the userland part of FreeBSD smbfs (mount_smbfs, smutil, libsmb) 2003-02-16 08:15:07 +00:00