summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/smbfs/HISTORY4
-rw-r--r--contrib/smbfs/lib/smb/ctx.c6
-rw-r--r--contrib/smbfs/mount_smbfs/mount_smbfs.c12
3 files changed, 13 insertions, 9 deletions
diff --git a/contrib/smbfs/HISTORY b/contrib/smbfs/HISTORY
index 844dd3660143..1395345f88b8 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 6ecb190419bc..a9342105fc57 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 <sys/param.h>
#include <sys/sysctl.h>
@@ -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 9b90c30722bb..f8295e7a5eaf 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 <sys/param.h>
#include <sys/stat.h>
@@ -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);
}