Project

General

Profile

Submit #2122 » 0008-Fix-a-bug-in-nullfs_mount.patch

ftigeot, 08/28/2011 10:26 AM

View differences:

sys/vfs/nullfs/null_vfsops.c
NULLFSDEBUG("nullfs_mount: lower %s, alias at %s\n",
mp->mnt_stat.f_mntfromname, mp->mnt_stat.f_mntfromname);
/* nullfs_statfs doesn't populate f_mntonname */
bzero(mp->mnt_stat.f_mntonname, MNAMELEN);
if (path != NULL) {
(void) copyinstr(path, mp->mnt_stat.f_mntonname, MNAMELEN - 1,
&size);
}
/*
* Set NCALIASED so unmount won't complain about namecache refs
* still existing.
(1-1/4)