Date: Fri, 31 Jul 2009 12:43:01 +0000 (UTC) From: Stanislav Sedov <stas@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r195993 - projects/libprocstat/sys/kern Message-ID: <200907311243.n6VCh1WE069335@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: stas Date: Fri Jul 31 12:43:01 2009 New Revision: 195993 URL: http://svn.freebsd.org/changeset/base/195993 Log: - Return va_mode as vnode mode number, not UFS-specific inode mode data. - Fix a typo in controlling tty retrieval function. [1] Spotted by: ed [1] Modified: projects/libprocstat/sys/kern/kern_descrip.c Modified: projects/libprocstat/sys/kern/kern_descrip.c ============================================================================== --- projects/libprocstat/sys/kern/kern_descrip.c Fri Jul 31 12:30:23 2009 (r195992) +++ projects/libprocstat/sys/kern/kern_descrip.c Fri Jul 31 12:43:01 2009 (r195993) @@ -3000,7 +3000,7 @@ sysctl_kern_proc_filedesc(SYSCTL_HANDLER /* Controlling tty. */ cttyvp = NULL; if (p->p_pgrp != NULL && p->p_pgrp->pg_session != NULL) { - cttyvp = p->p_pgrp->pg_session.s_ttyvp; + cttyvp = p->p_pgrp->pg_session->s_ttyvp; vref(cttyvp); } fdp = fdhold(p); @@ -3201,7 +3201,7 @@ fill_vnode_info(struct vnode *vp, struct return (error); kif->kf_un.kf_file.kf_file_fsid = va.va_fsid; kif->kf_un.kf_file.kf_file_fileid = va.va_fileid; - kif->kf_un.kf_file.kf_file_mode = MAKEIMODE(va.va_type, va.va_mode); + kif->kf_un.kf_file.kf_file_mode = va.va_mode; kif->kf_un.kf_file.kf_file_size = va.va_size; kif->kf_un.kf_file.kf_file_rdev = va.va_rdev; return (0);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907311243.n6VCh1WE069335>