From 85a8e7acfa2eb28be0aaf0aee1ce1529ad8df67f Mon Sep 17 00:00:00 2001 From: christos Date: Mon, 26 Apr 2004 17:08:34 +0000 Subject: [PATCH] fill namemax --- sys/fs/smbfs/smbfs_vfsops.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/fs/smbfs/smbfs_vfsops.c b/sys/fs/smbfs/smbfs_vfsops.c index 27de40e2d40b..86b1a3d9ed3e 100644 --- a/sys/fs/smbfs/smbfs_vfsops.c +++ b/sys/fs/smbfs/smbfs_vfsops.c @@ -1,4 +1,4 @@ -/* $NetBSD: smbfs_vfsops.c,v 1.36 2004/04/25 16:42:41 simonb Exp $ */ +/* $NetBSD: smbfs_vfsops.c,v 1.37 2004/04/26 17:08:34 christos Exp $ */ /* * Copyright (c) 2000-2001, Boris Popov @@ -35,7 +35,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: smbfs_vfsops.c,v 1.36 2004/04/25 16:42:41 simonb Exp $"); +__KERNEL_RCSID(0, "$NetBSD: smbfs_vfsops.c,v 1.37 2004/04/26 17:08:34 christos Exp $"); #ifdef _KERNEL_OPT #include "opt_quota.h" @@ -46,6 +46,7 @@ __KERNEL_RCSID(0, "$NetBSD: smbfs_vfsops.c,v 1.36 2004/04/25 16:42:41 simonb Exp #include #include #include +#include #include #include #include @@ -199,6 +200,7 @@ smbfs_mount(struct mount *mp, const char *path, void *data, mp, p); if (error) goto bad; + sbp->mnt_stat.f_namemax = MAXNAMLEN; memset(mp->mnt_stat.f_mntfromname, 0, MNAMELEN); snprintf(mp->mnt_stat.f_mntfromname, MNAMELEN, "//%s@%s/%s", vcp->vc_username, vcp->vc_srvname, ssp->ss_name); @@ -413,6 +415,7 @@ smbfs_statvfs(struct mount *mp, struct statvfs *sbp, struct proc *p) return error; sbp->f_flag = 0; /* copy of mount exported flags */ sbp->f_owner = mp->mnt_stat.f_owner; /* user that mounted the filesystem */ + sbp->f_namemax = MAXNAMLEN; copy_statvfs_info(sbp, mp); return 0; }