Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Oct 2021 01:05:31 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 248184] readlink("/proc/curproc/file") returns arbitrary correct name for programs with more than one link (name)
Message-ID:  <bug-248184-227-oJLqTUZcjm@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-248184-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-248184-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248184

--- Comment #10 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3De5248548f95ff1c89667847e0d945dea3=
8adeca7

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(-)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-248184-227-oJLqTUZcjm>