Date: Wed, 22 Jul 2020 16:53:25 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 248184] readlink("/proc/curproc/file" returns random results Message-ID: <bug-248184-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248184 Bug ID: 248184 Summary: readlink("/proc/curproc/file" returns random results Product: Base System Version: 12.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: Joerg.Schilling@fokus.fraunhofer.de The expected returned string is the first argument to the exec*() call, but= it returns a random hardlink to that file instead. This prevents it from being used to detect how a program has been called an= d to select the dedicated behavior from a fat binary, that e.g. implements both POSIX and non-POSIX behavior. I came over that problem when calling the parallel version of SunPro Make a= s: /opt/schily/bin/dmake and readlink(/porc/curproc/file) returned /opt/schily/xpg4/bin/make --=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>