Expose the 'exe' symlink to the process realpath in NetBSD as well. An
example user is gdb. OK'd by christos.
This commit is contained in:
parent
0ed9b3e5ea
commit
45ea587c94
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: procfs_vnops.c,v 1.138 2006/11/16 01:33:38 christos Exp $ */
|
||||
/* $NetBSD: procfs_vnops.c,v 1.139 2006/11/25 09:39:34 skrll Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1993, 1995
|
||||
|
@ -76,7 +76,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: procfs_vnops.c,v 1.138 2006/11/16 01:33:38 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: procfs_vnops.c,v 1.139 2006/11/25 09:39:34 skrll Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -142,7 +142,7 @@ static const struct proc_target {
|
|||
{ DT_REG, N("map"), PFSmap, procfs_validmap },
|
||||
{ DT_REG, N("maps"), PFSmaps, procfs_validmap },
|
||||
{ DT_REG, N("cmdline"), PFScmdline, NULL },
|
||||
{ DT_REG, N("exe"), PFSexe, procfs_validfile_linux },
|
||||
{ DT_REG, N("exe"), PFSexe, procfs_validfile },
|
||||
{ DT_LNK, N("cwd"), PFScwd, NULL },
|
||||
{ DT_LNK, N("root"), PFSchroot, NULL },
|
||||
{ DT_LNK, N("emul"), PFSemul, NULL },
|
||||
|
|
Loading…
Reference in New Issue