From 377e63ad8f957648ff62c54098cee846466006da Mon Sep 17 00:00:00 2001 From: Tom Rhodes Date: Thu, 22 Jan 2009 08:29:39 +0000 Subject: [PATCH] Document the "-U" option. While it is not part of the getopt(), it is accepted through smb_ctx_init() in lib/smb/ctx.c. PR: 117013 Submitted by: Tom Evans (original version) --- contrib/smbfs/mount_smbfs/mount_smbfs.8 | 5 ++++- contrib/smbfs/mount_smbfs/mount_smbfs.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/contrib/smbfs/mount_smbfs/mount_smbfs.8 b/contrib/smbfs/mount_smbfs/mount_smbfs.8 index aec889c04ce3..85ee6e3efefb 100644 --- a/contrib/smbfs/mount_smbfs/mount_smbfs.8 +++ b/contrib/smbfs/mount_smbfs/mount_smbfs.8 @@ -1,6 +1,6 @@ .\" $Id: mount_smbfs.8,v 1.10 2002/04/16 02:47:41 bp Exp $ .\" $FreeBSD$ -.Dd March 10, 2000 +.Dd January 21, 2008 .Dt MOUNT_SMBFS 8 .Os .Sh NAME @@ -16,6 +16,7 @@ .Op Fl O Ar cowner : Ns Ar cgroup Ns / Ns Ar sowner : Ns Ar sgroup .Op Fl R Ar retrycount .Op Fl T Ar timeout +.Op Fl U Ar username .Op Fl W Ar workgroup .Op Fl c Ar case .Op Fl d Ar mode @@ -77,6 +78,8 @@ Default is 4. .It Fl T Ar timeout Timeout in seconds for each request. Default is 15. +.It Fl U Ar username +Username to authenticate with. .It Fl W Ar workgroup This option specifies the workgroup to be used in the authentication request. .It Fl c Ar case diff --git a/contrib/smbfs/mount_smbfs/mount_smbfs.c b/contrib/smbfs/mount_smbfs/mount_smbfs.c index fdcdd1a1b20d..3025c797612b 100644 --- a/contrib/smbfs/mount_smbfs/mount_smbfs.c +++ b/contrib/smbfs/mount_smbfs/mount_smbfs.c @@ -295,7 +295,7 @@ usage(void) "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"); + " [-g gid] [-n opt] [-u uid] [-U username] //user@server/share node"); exit (1); }