Commit Graph

39 Commits

Author SHA1 Message Date
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
wiz
3df7a01f61 Ar -I -> Fl I; bump date for previous. 2003-11-09 21:24:15 +00:00
hubertf
007e11ede2 Document the special server name "*SMBSERVER" 2003-11-09 21:19:31 +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
c94b972ba9 terminate Xo/Xc, they are not needed with groff and new tmac macros 2003-07-04 20:20:22 +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
96af0b754d use Xo/Xc for the //user@server/share part of synopsis, to avoid
the argument count limit
2003-04-11 12:02:09 +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
jdolecek
9801788f6d add /etc/nsmb.conf to FILES
refer to /usr/share/examples/smbfs/dot.nsmbrc rather than ./examples/dot.nsmbrc
2003-04-04 07:57:58 +00:00
jdolecek
83474bb6d9 fix the name of global configuration file - it's /etc/nsmb.conf, not
/usr/local/etc/nsmb.conf
pointed out in FreeBSD misc/45273
2003-04-04 07:54:44 +00:00
jdolecek
9b2bc3e8c8 use /etc/nsmb.conf rather than /usr/local/etc/nsmb.conf by default 2003-04-04 07:41:32 +00:00
jdolecek
a05dbc8c48 add NetBSD RCS Id 2003-04-04 07:37:44 +00:00
jdolecek
d9bc15eb32 there is no nsmb(8), so don't xref it here
pointed out in private mail by Kurt Schreiner
2003-04-01 11:24:47 +00:00
jdolecek
102ae64e46 remove BUGS section & don't Xr send-pr(1) - the code seems to be generally
working well and could be used without particular fear

use "SMB/CIFS" in the description

bump date
2003-03-31 17:22:31 +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
wiz
bf95548fc6 Sort sections. 2003-03-03 07:32:29 +00:00
jdolecek
02229c5641 print also the description of error if mount(2) fails 2003-02-24 09:13:08 +00:00
jdolecek
f31ba31b00 change smbfs_args:
* g/c unused members 'mount_point', 'root_path', which only take space
* rename 'dev' to 'dev_fd' to more closely match what it is
* add 'export' member to avoid changing this again if ever smbfs would
  be made exportable

bump SMBFS_VERMIN - ABI/API change; mount_smbfs needs to be recompiled
to work again
2003-02-23 22:31:17 +00:00
jdolecek
a2e6fb66e5 do not initialize/use member 'mount_point' of struct smbfs_args
allocate mount_point[] on stack
2003-02-23 22:14:09 +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
scw
beccdcb402 Make this at least compile on BE platforms.
XXX: Needs testing by someone with a suitable SMB server.
2003-02-19 11:58:58 +00:00
jdolecek
5bfb055309 add TNF copyright and $NetBSD$ RCS Id
add SEE ALSO, HISTORY
adjust BUGS to stress this is experimental and to use send-pr
adjust AUTHORS to include people who did NetBSD port (Matt Debergalis and me)
2003-02-18 20:31:19 +00:00
jdolecek
488fc89a73 use Xo/Xc to work-around our current tmac macro limitation of nine
arguments
2003-02-18 09:55:09 +00:00
jdolecek
0f48fcb071 g/c code not used by NetBSD
constify mopts[]
2003-02-18 09:53:55 +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
ccd9e5eeff g/c, use version from sbin/mount/ directly 2003-02-16 09:14:33 +00:00
jdolecek
42cf4439c1 Import the userland part of FreeBSD smbfs (mount_smbfs, smutil, libsmb) 2003-02-16 08:15:07 +00:00