From e408bb58567fc1081f8fefb21b5fc64aac4b8548 Mon Sep 17 00:00:00 2001 From: sheldonh Date: Wed, 26 Dec 2001 15:35:10 +0000 Subject: Import smbfs-1.4.3. --- contrib/smbfs/HISTORY | 4 ++++ contrib/smbfs/lib/smb/ctx.c | 6 +++--- contrib/smbfs/mount_smbfs/mount_smbfs.c | 12 ++++++------ 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/contrib/smbfs/HISTORY b/contrib/smbfs/HISTORY index 844dd36..1395345 100644 --- a/contrib/smbfs/HISTORY +++ b/contrib/smbfs/HISTORY @@ -1,3 +1,7 @@ +26.12.2001 1.4.3 + - Additional cleanups for FreeBSD builds. + - Charset specifications now accepted in the [default] section. + 20.12.2001 1.4.2 (interim) - Various merges (but not all) from Darwin project. - Minor man pages corrections. diff --git a/contrib/smbfs/lib/smb/ctx.c b/contrib/smbfs/lib/smb/ctx.c index 6ecb190..a934210 100644 --- a/contrib/smbfs/lib/smb/ctx.c +++ b/contrib/smbfs/lib/smb/ctx.c @@ -29,7 +29,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ctx.c,v 1.21 2001/04/06 15:47:14 bp Exp $ + * $Id: ctx.c,v 1.22 2001/12/26 04:10:52 bp Exp $ */ #include #include @@ -615,7 +615,7 @@ smb_ctx_lookup(struct smb_ctx *ctx, int level, int flags) } error = smb_ctx_gethandle(ctx); if (error) { - smb_error("can't get handle to requester (no /dev/net/nsmb* device)", 0); + smb_error("can't get handle to requester (no /dev/"NSMB_NAME"* device)", 0); return EINVAL; } bzero(&rq, sizeof(rq)); @@ -696,7 +696,7 @@ smb_ctx_readrcsection(struct smb_ctx *ctx, const char *sname, int level) char *p; int error; - if (level > 0) { + if (level >= 0) { rc_getstringptr(smb_rc, sname, "charsets", &p); if (p) { error = smb_ctx_setcharset(ctx, p); diff --git a/contrib/smbfs/mount_smbfs/mount_smbfs.c b/contrib/smbfs/mount_smbfs/mount_smbfs.c index 9b90c30..f8295e7 100644 --- a/contrib/smbfs/mount_smbfs/mount_smbfs.c +++ b/contrib/smbfs/mount_smbfs/mount_smbfs.c @@ -29,7 +29,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: mount_smbfs.c,v 1.15 2001/12/20 15:03:41 bp Exp $ + * $Id: mount_smbfs.c,v 1.16 2001/12/26 04:09:57 bp Exp $ */ #include #include @@ -61,7 +61,7 @@ static void usage(void); static struct mntopt mopts[] = { MOPT_STDOPTS, - { NULL } + { NULL, 0, 0, 0 } }; @@ -269,10 +269,10 @@ static void usage(void) { fprintf(stderr, "%s\n%s\n%s\n%s\n", - "usage: mount_smbfs [-Chv] [-U user] [-connection options]", - " [-M mode] [-c case] [-d mode] [-f mode]", - " [-g gid] [-l locale] [-n os2] [-u uid] [-w scheme]", - " /user@server/share node"); + "usage: mount_smbfs [-E cs1:cs2] [-I host] [-L locale] [-M crights:srights]", + " [-N] [-O cowner:cgroup/sowner:sgroup] [-R retrycount]", + " [-T timeout] [-W workgroup] [-c case] [-d mode] [-f mode]", + " [-g gid] [-n opt] [-u uid] //user@server/share node"); exit (1); } -- cgit v1.1