summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1997-04-01 14:15:30 +0000
committerBruce Evans <bde@FreeBSD.org>1997-04-01 14:15:30 +0000
commit1f45d4d4ebc22f766cdd77d84f0a5c431f3c8d3b (patch)
tree3459087936e3f603aec1ff89f9dcef999d96f1ac
parent67fd3b9895eec925f9ce8b63df146030f7af8fbf (diff)
Notes
-rw-r--r--sbin/mountd/mountd.c8
-rw-r--r--usr.sbin/mountd/mountd.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/sbin/mountd/mountd.c b/sbin/mountd/mountd.c
index aef2583fe19b..472440e8bacb 100644
--- a/sbin/mountd/mountd.c
+++ b/sbin/mountd/mountd.c
@@ -43,7 +43,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "@(#)mountd.c 8.15 (Berkeley) 5/1/95"; */
static const char rcsid[] =
- "$Id: mountd.c,v 1.15 1997/03/27 20:00:48 guido Exp $";
+ "$Id: mountd.c,v 1.16 1997/03/29 03:32:49 imp Exp $";
#endif /*not lint*/
#include <sys/param.h>
@@ -254,10 +254,10 @@ main(argc, argv)
{
SVCXPRT *udptransp, *tcptransp;
int c;
+ int mib[3];
#ifdef __FreeBSD__
struct vfsconf vfc;
int error;
- int mib[3];
error = getvfsbyname("nfs", &vfc);
if (error && vfsisloadable("nfs")) {
@@ -321,8 +321,8 @@ main(argc, argv)
mib[0] = CTL_VFS;
mib[1] = MOUNT_NFS;
mib[2] = NFS_NFSPRIVPORT;
- if (sysctl(mib, 3, NULL, NULL,
- &resvport_only, sizeof(resvport_only)) != 0) {
+ if (sysctl(mib, 3, NULL, NULL, &resvport_only,
+ sizeof(resvport_only)) != 0 && errno != ENOENT) {
syslog(LOG_ERR, "sysctl: %m");
exit(1);
}
diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c
index aef2583fe19b..472440e8bacb 100644
--- a/usr.sbin/mountd/mountd.c
+++ b/usr.sbin/mountd/mountd.c
@@ -43,7 +43,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "@(#)mountd.c 8.15 (Berkeley) 5/1/95"; */
static const char rcsid[] =
- "$Id: mountd.c,v 1.15 1997/03/27 20:00:48 guido Exp $";
+ "$Id: mountd.c,v 1.16 1997/03/29 03:32:49 imp Exp $";
#endif /*not lint*/
#include <sys/param.h>
@@ -254,10 +254,10 @@ main(argc, argv)
{
SVCXPRT *udptransp, *tcptransp;
int c;
+ int mib[3];
#ifdef __FreeBSD__
struct vfsconf vfc;
int error;
- int mib[3];
error = getvfsbyname("nfs", &vfc);
if (error && vfsisloadable("nfs")) {
@@ -321,8 +321,8 @@ main(argc, argv)
mib[0] = CTL_VFS;
mib[1] = MOUNT_NFS;
mib[2] = NFS_NFSPRIVPORT;
- if (sysctl(mib, 3, NULL, NULL,
- &resvport_only, sizeof(resvport_only)) != 0) {
+ if (sysctl(mib, 3, NULL, NULL, &resvport_only,
+ sizeof(resvport_only)) != 0 && errno != ENOENT) {
syslog(LOG_ERR, "sysctl: %m");
exit(1);
}