Fixes problem pointed out by Nicolas Joly.
XXX: would probably be better to forget canon_dev from the parseargs
interface completely and do rump_sys_statvfs() in p2k after mounting
the fail system in the virtual kernel.
(yes, this is dist, but considering the last and only import from
upstream was 7 years ago, I'm not exactly worried this will make
importing future versions harder)
the owner of the mount point (or user specified via -u); this is necessary
to succeed the permission check in the kernel SMB share code
owner setting via -O would still apply, but it's now not necessary when
doing non-root mount
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
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
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
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.
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.