[Clfs-commits] [CLFS Trac] #155: Create /bin/echo for tst-vfork3.c in glibc-2.7
CLFS Trac
trac at cross-lfs.org
Wed Apr 9 06:41:02 PDT 2008
#155: Create /bin/echo for tst-vfork3.c in glibc-2.7
------------------------+---------------------------------------------------
Reporter: kb0iic | Owner: clfs-commits at lists.cross-lfs.org.
Type: task | Status: new
Priority: major | Milestone: CLFS Standard 1.1.0
Component: BOOK | Version: CLFS Standard 1.1.0
Keywords: tst-vfork3 |
------------------------+---------------------------------------------------
Posix test fails if /bin/echo isn't found for tst-vfork3.c in posix tests
for glibc-2.7.
Maybe should add this in creating essential symlinks.
const char *path = getenv ("PATH");
if (path == NULL)
path = "/bin";
char pathbuf[strlen (tmpdirname) + 1 + strlen (path) + 1];
strcpy (stpcpy (stpcpy (pathbuf, tmpdirname), ":"), path);
if (setenv ("PATH", pathbuf, 1) < 0)
{
puts ("setenv failed");
return 1;
}
Haven't looked a whole lot into this, yet. Isn't echo in /tools/bin, too?
And wouldn't /tools/bin be in the PATH?
What the hell is the problem here? Is PATH really null when the tests are
ran?
--
Ticket URL: <http://trac.cross-lfs.org/ticket/155>
CLFS Trac <http://trac.cross-lfs.org>
The Cross Linux From Scratch Project.
More information about the Clfs-commits
mailing list