Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

gnushit

Name: Anonymous 2009-10-30 14:03

#include <unistd.h>
int main(int argc, char *argv[])
{
    return execl("/bin/true", NULL);
}

This makes GNU true segfault in a call to strrchr().

Name: Anonymous 2009-10-30 14:55

>>2
Then execl should fail, not true.

The bigger question is, why does true need to call strrchr in the first place?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List