[Bug 248184] readlink("/proc/curproc/file") returns arbitrary correct name for programs with more than one link (name)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 31 Oct 2021 01:05:31 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248184
--- Comment #10 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=e5248548f95ff1c89667847e0d945dea38adeca7
commit e5248548f95ff1c89667847e0d945dea38adeca7
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-10-29 01:43:32 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-10-31 01:05:14 +0000
procfs: return right hardlink from /proc/curproc/file
Use proc_get_binpath() to get the hardlink right.
PR: 248184
Reviewed by: emaste, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D32738
sys/fs/procfs/procfs.c | 17 ++++++-----------
1 file changed, 6 insertions(+), 11 deletions(-)
--
You are receiving this mail because:
You are the assignee for the bug.