https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248184

            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: b...@freebsd.org
          Reporter: joerg.schill...@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 and 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 as:

/opt/schily/bin/dmake

and readlink(/porc/curproc/file) returned /opt/schily/xpg4/bin/make

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to