Project

General

Profile

Bug #2926 ยป getfsstat.patch

t_dfbsd, 06/10/2018 06:02 PM

View differences:

sys/kern/vfs_syscalls.c
1515 1515
	char *fullpath;
1516 1516
	int error;
1517 1517

  
1518
	if (info->td->td_proc &&
1519
	    !chroot_visible_mnt(mp, info->td->td_proc)) {
1520
		return(0);
1521
	}
1522

  
1518 1523
	if (info->sfsp && info->count < info->maxcount) {
1519
		if (info->td->td_proc &&
1520
		    !chroot_visible_mnt(mp, info->td->td_proc)) {
1521
			return(0);
1522
		}
1523 1524
		sp = &mp->mnt_stat;
1524 1525

  
1525 1526
		/*
    (1-1/1)