tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: $ORIGIN



On Jan 25, 2014, at 11:06 AM, David Holland 
<dholland-tech%netbsd.org@localhost> wrote:

> No, it isn't; you can get one by seeding the input to namei with
> getcwd. The problem is that we didn't want to do that on every exec
> and (if done on every exec) that it would cause problems in cases
> where getcwd fails.

Aren't the majority of exec's done with a pathname?  Why not cache
that name if the image has DF_ORIGIN set?


Home | Main Index | Thread Index | Old Index