Opened 17 years ago

Closed 16 years ago

#155 closed task (fixed)

Create /bin/echo for tst-vfork3.c in glibc-2.7

Reported by: William Harrington Owned by: clfs-commits@…
Priority: major Milestone: CLFS Standard 1.1.0
Component: BOOK Version: CLFS Standard 1.1.0
Keywords: tst-vfork3 Cc:

Description

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?

Change History (1)

comment:1 by Joe Ciccone, 16 years ago

Resolution: fixed
Status: newclosed

Linked /tools/bin/echo to /bin/echo in r3944. Fixes this error.

Note: See TracTickets for help on using tickets.