Fix some style bugs.

Submitted by:	bruce
This commit is contained in:
guido 1997-12-10 20:33:59 +00:00
parent 02f883b4a2
commit db8034d25a
4 changed files with 20 additions and 18 deletions

View File

@ -30,7 +30,7 @@
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" @(#)mountd.8 8.4 (Berkeley) 4/28/95 .\" @(#)mountd.8 8.4 (Berkeley) 4/28/95
.\" $Id: mountd.8,v 1.10 1997/04/22 10:37:27 dfr Exp $ .\" $Id: mountd.8,v 1.11 1997/12/09 18:43:44 guido Exp $
.\" .\"
.Dd April 28, 1995 .Dd April 28, 1995
.Dt MOUNTD 8 .Dt MOUNTD 8
@ -42,7 +42,7 @@
mount requests mount requests
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm /sbin/mountd .Nm /sbin/mountd
.Op Fl 2nrl .Op Fl 2lnr
.Op Ar exportsfile .Op Ar exportsfile
.Sh DESCRIPTION .Sh DESCRIPTION
.Xr Mountd .Xr Mountd
@ -66,6 +66,10 @@ The
.Fl 2 .Fl 2
option allows the administrator to force clients to use only the option allows the administrator to force clients to use only the
version 2 NFS protocol to mount filesystems from this server. version 2 NFS protocol to mount filesystems from this server.
.It Fl l
The
.Fl l
option will cause all succeeded mountd requests to be logged.
.It Fl n .It Fl n
The The
.Fl n .Fl n
@ -87,10 +91,6 @@ the entire file system in which the swapfiles resides
will have to be exported with the will have to be exported with the
.Fl alldirs .Fl alldirs
flag. flag.
.It Fl l
The
.Fl l
option will cause all succeeded mountd requests to be logged.
.It Ar exportsfile .It Ar exportsfile
The The
.Ar exportsfile .Ar exportsfile

View File

@ -43,7 +43,7 @@ static char copyright[] =
#ifndef lint #ifndef lint
/*static char sccsid[] = "@(#)mountd.c 8.15 (Berkeley) 5/1/95"; */ /*static char sccsid[] = "@(#)mountd.c 8.15 (Berkeley) 5/1/95"; */
static const char rcsid[] = static const char rcsid[] =
"$Id: mountd.c,v 1.24 1997/09/12 16:25:24 jlemon Exp $"; "$Id: mountd.c,v 1.25 1997/12/09 18:43:44 guido Exp $";
#endif /*not lint*/ #endif /*not lint*/
#include <sys/param.h> #include <sys/param.h>
@ -273,7 +273,7 @@ main(argc, argv)
errx(1, "NFS support is not available in the running kernel"); errx(1, "NFS support is not available in the running kernel");
#endif /* __FreeBSD__ */ #endif /* __FreeBSD__ */
while ((c = getopt(argc, argv, "2dnrl")) != -1) while ((c = getopt(argc, argv, "2dlnr")) != -1)
switch (c) { switch (c) {
case '2': case '2':
force_v2 = 1; force_v2 = 1;
@ -291,7 +291,8 @@ main(argc, argv)
log = 1; log = 1;
break; break;
default: default:
fprintf(stderr, "Usage: mountd [-d] [-r] [-n] [-l] [export_file]\n"); fprintf(stderr,
"Usage: mountd [-d] [-l] [-r] [-n] [export_file]\n");
exit(1); exit(1);
}; };
argc -= optind; argc -= optind;

View File

@ -30,7 +30,7 @@
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" @(#)mountd.8 8.4 (Berkeley) 4/28/95 .\" @(#)mountd.8 8.4 (Berkeley) 4/28/95
.\" $Id: mountd.8,v 1.10 1997/04/22 10:37:27 dfr Exp $ .\" $Id: mountd.8,v 1.11 1997/12/09 18:43:44 guido Exp $
.\" .\"
.Dd April 28, 1995 .Dd April 28, 1995
.Dt MOUNTD 8 .Dt MOUNTD 8
@ -42,7 +42,7 @@
mount requests mount requests
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm /sbin/mountd .Nm /sbin/mountd
.Op Fl 2nrl .Op Fl 2lnr
.Op Ar exportsfile .Op Ar exportsfile
.Sh DESCRIPTION .Sh DESCRIPTION
.Xr Mountd .Xr Mountd
@ -66,6 +66,10 @@ The
.Fl 2 .Fl 2
option allows the administrator to force clients to use only the option allows the administrator to force clients to use only the
version 2 NFS protocol to mount filesystems from this server. version 2 NFS protocol to mount filesystems from this server.
.It Fl l
The
.Fl l
option will cause all succeeded mountd requests to be logged.
.It Fl n .It Fl n
The The
.Fl n .Fl n
@ -87,10 +91,6 @@ the entire file system in which the swapfiles resides
will have to be exported with the will have to be exported with the
.Fl alldirs .Fl alldirs
flag. flag.
.It Fl l
The
.Fl l
option will cause all succeeded mountd requests to be logged.
.It Ar exportsfile .It Ar exportsfile
The The
.Ar exportsfile .Ar exportsfile

View File

@ -43,7 +43,7 @@ static char copyright[] =
#ifndef lint #ifndef lint
/*static char sccsid[] = "@(#)mountd.c 8.15 (Berkeley) 5/1/95"; */ /*static char sccsid[] = "@(#)mountd.c 8.15 (Berkeley) 5/1/95"; */
static const char rcsid[] = static const char rcsid[] =
"$Id: mountd.c,v 1.24 1997/09/12 16:25:24 jlemon Exp $"; "$Id: mountd.c,v 1.25 1997/12/09 18:43:44 guido Exp $";
#endif /*not lint*/ #endif /*not lint*/
#include <sys/param.h> #include <sys/param.h>
@ -273,7 +273,7 @@ main(argc, argv)
errx(1, "NFS support is not available in the running kernel"); errx(1, "NFS support is not available in the running kernel");
#endif /* __FreeBSD__ */ #endif /* __FreeBSD__ */
while ((c = getopt(argc, argv, "2dnrl")) != -1) while ((c = getopt(argc, argv, "2dlnr")) != -1)
switch (c) { switch (c) {
case '2': case '2':
force_v2 = 1; force_v2 = 1;
@ -291,7 +291,8 @@ main(argc, argv)
log = 1; log = 1;
break; break;
default: default:
fprintf(stderr, "Usage: mountd [-d] [-r] [-n] [-l] [export_file]\n"); fprintf(stderr,
"Usage: mountd [-d] [-l] [-r] [-n] [export_file]\n");
exit(1); exit(1);
}; };
argc -= optind; argc -= optind;