Hacker News new | ask | show | jobs
by eptcyka 878 days ago
The first arg to your program is a path to the binary that's being executed. No /proc required.
1 comments

It's usually the path to the binary being executed, but you can pass anything you want when you exec. e.g. execl("/bin/ls", "definitely not /bin/ls", NULL);