summaryrefslogtreecommitdiffstats
path: root/sys/nfs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-12-28 21:56:49 +0000
committerphk <phk@FreeBSD.org>1995-12-28 21:56:49 +0000
commit2991bbce58decd6385778e050db0047dfea117e6 (patch)
tree76d1ab1e27121b7aa6ee60146a2786bc920479c3 /sys/nfs
parent01f440349305ae494d83f2390c0f21614afcc7b6 (diff)
downloadFreeBSD-src-2991bbce58decd6385778e050db0047dfea117e6.zip
FreeBSD-src-2991bbce58decd6385778e050db0047dfea117e6.tar.gz
Don't print swap server as root server.
Submitted by: Mattias.Gronlund@sa.erisoft.se (Mattias Gronlund)
Diffstat (limited to 'sys/nfs')
-rw-r--r--sys/nfs/nfs_vfsops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfs/nfs_vfsops.c b/sys/nfs/nfs_vfsops.c
index 85faa62..df4a562 100644
--- a/sys/nfs/nfs_vfsops.c
+++ b/sys/nfs/nfs_vfsops.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_vfsops.c 8.3 (Berkeley) 1/4/94
- * $Id: nfs_vfsops.c,v 1.24 1995/12/17 21:12:35 phk Exp $
+ * $Id: nfs_vfsops.c,v 1.25 1995/12/22 15:57:38 phk Exp $
*/
#include <sys/param.h>
@@ -428,7 +428,7 @@ nfs_mountroot()
* If using nfsv3_diskless, replace NFSX_V2FH with nd->root_fhsize.
*/
nd->root_args.fhsize = NFSX_V2FH;
- l = ntohl(nd->swap_saddr.sin_addr.s_addr);
+ l = ntohl(nd->root_saddr.sin_addr.s_addr);
sprintf(buf,"%ld.%ld.%ld.%ld:%s",
(l >> 24) & 0xff, (l >> 16) & 0xff,
(l >> 8) & 0xff, (l >> 0) & 0xff,nd->root_hostnam);
OpenPOWER on IntegriCloud