[Bug libc/12678] New: POSIX.1-2008 non-compliance in sysdeps/posix/system.c: Hard-coded shell path

shea at shealevy dot com sourceware-bugzilla@sourceware.org
Fri Apr 15 13:30:00 GMT 2011


http://sourceware.org/bugzilla/show_bug.cgi?id=12678

           Summary: POSIX.1-2008 non-compliance in sysdeps/posix/system.c:
                    Hard-coded shell path
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: minor
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: shea@shealevy.com


>From http://pubs.opengroup.org/onlinepubs/9699919799/utilities/sh.html:

"Applications should note that the standard PATH to the shell cannot be assumed
to be either /bin/sh or /usr/bin/sh, and should be determined by interrogation
of the PATH returned by getconf PATH , ensuring that the returned pathname is
an absolute pathname and not a shell built-in."

>From sysdeps/posix/system.c:

#define SHELL_PATH      "/bin/sh"       /* Path of the shell.  */

Thus any application that uses system() is violating the above section.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the Glibc-bugs mailing list